X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=f001236a58abb334b481d8562ebed97acf5f41d0;hb=ab46e904fe67161ff4e017fb16ab5146a754fa10;hp=eeec9d1c89467868fb25f69f921473a64eab8e8b;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index eeec9d1c89..f001236a58 100644 --- a/maintenance/checkLess.php +++ b/maintenance/checkLess.php @@ -40,7 +40,7 @@ class CheckLess extends Maintenance { // NOTE (phuedx, 2014-03-26) wgAutoloadClasses isn't set up // by either of the dependencies at the top of the file, so // require it here. - require_once __DIR__ . '/../tests/TestsAutoLoader.php'; + self::requireTestsAutoloader(); // If phpunit isn't available by autoloader try pulling it in if ( !class_exists( 'PHPUnit_Framework_TestCase' ) ) { @@ -62,5 +62,5 @@ class CheckLess extends Maintenance { } } -$maintClass = 'CheckLess'; +$maintClass = CheckLess::class; require_once RUN_MAINTENANCE_IF_MAIN;