mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-23 14:06:55 +00:00
Upgrade to newer phan
Bug: T216923 Change-Id: I4b1363d58bb1e1ed4393bfe917f524091495057b
This commit is contained in:
parent
0a104ab99d
commit
0f74b73974
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,4 +22,3 @@ project.index
|
|||
## Sublime
|
||||
sublime-*
|
||||
sftp-config.json
|
||||
tests/phan/issues
|
||||
|
|
3
.phan/config.php
Normal file
3
.phan/config.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
@ -4,7 +4,7 @@
|
|||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.3.0"
|
||||
"mediawiki/mediawiki-phan-config": "0.5.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -281,9 +281,9 @@ class SpecialInterwiki extends SpecialPage {
|
|||
}
|
||||
|
||||
if ( $do === 'add' ) {
|
||||
$dbw->insert( 'interwiki', $rows, __METHOD__, 'IGNORE' );
|
||||
$dbw->insert( 'interwiki', $rows, __METHOD__, [ 'IGNORE' ] );
|
||||
} else { // $do === 'edit'
|
||||
$dbw->update( 'interwiki', $rows, [ 'iw_prefix' => $prefix ], __METHOD__, 'IGNORE' );
|
||||
$dbw->update( 'interwiki', $rows, [ 'iw_prefix' => $prefix ], __METHOD__, [ 'IGNORE' ] );
|
||||
}
|
||||
|
||||
// used here: interwiki_addfailed, interwiki_added, interwiki_edited
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
|
||||
return require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
Loading…
Reference in a new issue