X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FaddSite.php;h=b0ee96671178cbf98d6fd1585d05af7a3c9fcaef;hb=65f714e1e679127c4d38a40e7b23da8cee2195d6;hp=1ebc4f6643814ff4d673ee1471e39c1e8d9885ff;hpb=9def51e9d63bf0031bb6ef94ee5ab8b8846bd1e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/addSite.php b/maintenance/addSite.php index 1ebc4f6643..b0ee966711 100644 --- a/maintenance/addSite.php +++ b/maintenance/addSite.php @@ -11,7 +11,7 @@ require_once $basePath . '/maintenance/Maintenance.php'; * * @since 1.29 * - * @license GNU GPL v2+ + * @license GPL-2.0-or-later * @author Florian Schmidt */ class AddSite extends Maintenance { @@ -35,6 +35,7 @@ class AddSite extends Maintenance { /** * Imports the site described by the parameters (see self::__construct()) passed to this * maintenance sccript into the sites table of MediaWiki. + * @return bool */ public function execute() { $siteStore = MediaWikiServices::getInstance()->getSiteStore(); @@ -87,5 +88,5 @@ class AddSite extends Maintenance { } } -$maintClass = 'AddSite'; +$maintClass = AddSite::class; require_once RUN_MAINTENANCE_IF_MAIN;