dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0
[lhc/web/wiklou.git]
/
maintenance
/
checkDependencies.php
diff --git
a/maintenance/checkDependencies.php
b/maintenance/checkDependencies.php
index
3e8b754
..
1d588ec
100644
(file)
--- a/
maintenance/checkDependencies.php
+++ b/
maintenance/checkDependencies.php
@@
-79,11
+79,12
@@
class CheckDependencies extends Maintenance {
}
private function loadThing( &$dependencies, $name, $extensions, $skins ) {
}
private function loadThing( &$dependencies, $name, $extensions, $skins ) {
- global $wgExtensionDirectory, $wgStyleDirectory;
+ $extDir = $this->getConfig()->get( 'ExtensionDirectory' );
+ $styleDir = $this->getConfig()->get( 'StyleDirectory' );
$queue = [];
$missing = false;
foreach ( $extensions as $extension ) {
$queue = [];
$missing = false;
foreach ( $extensions as $extension ) {
- $path = "$
wgExtensionDirectory
/$extension/extension.json";
+ $path = "$
extDir
/$extension/extension.json";
if ( file_exists( $path ) ) {
// 1 is ignored
$queue[$path] = 1;
if ( file_exists( $path ) ) {
// 1 is ignored
$queue[$path] = 1;
@@
-95,7
+96,7
@@
class CheckDependencies extends Maintenance {
}
foreach ( $skins as $skin ) {
}
foreach ( $skins as $skin ) {
- $path = "$
wgStyleDirectory
/$skin/skin.json";
+ $path = "$
styleDir
/$skin/skin.json";
if ( file_exists( $path ) ) {
$queue[$path] = 1;
$this->addToDependencies( $dependencies, [], [ $skin ], $name );
if ( file_exists( $path ) ) {
$queue[$path] = 1;
$this->addToDependencies( $dependencies, [], [ $skin ], $name );