Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into dependabot/composer/mediawiki/mediawiki-co…
Browse files Browse the repository at this point in the history
…desniffer-42.0.0
  • Loading branch information
Universal-Omega authored Dec 5, 2023
2 parents 322bbc9 + 0c8b956 commit e0754ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@

function wfOnMediaWikiServices( MediaWikiServices $services ) {
try {
global $IP;
$dbw = wfInitDBConnection();
if ( getenv( 'ECHO_SQL_EXECUTED' ) ) {
return;
}

$db = wfInitDBConnection();

if ( !$dbw->tableExists( 'echo_unread_wikis' ) ) {
$dbw->sourceFile( "$IP/extensions/Echo/sql/mysql/tables-sharedtracking-generated.sql" );
$db->selectDomain( 'wikidb' );
if ( !$db->tableExists( 'echo_unread_wikis' ) ) {
$db->sourceFile( MW_INSTALL_PATH . '/extensions/Echo/sql/mysql/tables-sharedtracking-generated.sql' );
}

putenv( 'ECHO_SQL_EXECUTED=true' );
} catch ( DBQueryError $e ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
python: ['3.9', '3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Python ${{ matrix.python }}
Expand Down

0 comments on commit e0754ad

Please sign in to comment.