X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstaller.php;h=03f997471b42c49c0ddd8cc3338184e6261fdeca;hb=c971615fe100535b2c2bddd6668961ece8bc9b8d;hp=5e3758daf063b5b07c3dcac749efaa0e075bd8f1;hpb=f7429252f85c5835b291def55fc04b8196c1bb39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 5e3758daf0..03f997471b 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -244,6 +244,7 @@ abstract class Installer { protected $objectCaches = [ 'xcache' => 'xcache_get', 'apc' => 'apc_fetch', + 'apcu' => 'apcu_fetch', 'wincache' => 'wincache_ucache_get' ]; @@ -294,10 +295,6 @@ abstract class Installer { 'url' => 'https://creativecommons.org/publicdomain/zero/1.0/', 'icon' => '$wgResourceBasePath/resources/assets/licenses/cc-0.png', ], - 'pd' => [ - 'url' => '', - 'icon' => '$wgResourceBasePath/resources/assets/licenses/public-domain.png', - ], 'gfdl' => [ 'url' => 'https://www.gnu.org/copyleft/fdl.html', 'icon' => '$wgResourceBasePath/resources/assets/licenses/gnu-fdl.png', @@ -1441,10 +1438,10 @@ abstract class Installer { /** * Get an array of install steps. Should always be in the format of - * array( + * [ * 'name' => 'someuniquename', - * 'callback' => array( $obj, 'method' ), - * ) + * 'callback' => [ $obj, 'method' ], + * ] * There must be a config-install-$name message defined per step, which will * be shown on install. * @@ -1728,7 +1725,7 @@ abstract class Installer { * Add an installation step following the given step. * * @param callable $callback A valid installation callback array, in this form: - * array( 'name' => 'some-unique-name', 'callback' => array( $obj, 'function' ) ); + * [ 'name' => 'some-unique-name', 'callback' => [ $obj, 'function' ] ]; * @param string $findStep The step to find. Omit to put the step at the beginning */ public function addInstallStep( $callback, $findStep = 'BEGINNING' ) {