X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstaller.php;h=48927705f005ce0b24a456574c07717708d1bea2;hb=4cc6a933681d1f6dd76fafc113288884b86e5ee7;hp=e1c5c29961a1a9d2bd01d8a35215372b3a7d23eb;hpb=504fb18cacbf357beafd5be9eda786b028f40fdb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index e1c5c29961..48927705f0 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -56,10 +56,11 @@ class WebInstaller extends Installer { /** * The main sequence of page names. These will be displayed in turn. - * To add one: - * * Add it here - * * Add a config-page- message - * * Add a WebInstaller_ class + * + * To add a new installer page: + * * Add it to this WebInstaller::$pageSequence property + * * Add a "config-page-" message + * * Add a "WebInstaller_" class * @var array */ public $pageSequence = array( @@ -362,7 +363,7 @@ class WebInstaller extends Installer { $url = $m[1]; } return md5( serialize( array( - 'local path' => dirname( dirname( __FILE__ ) ), + 'local path' => dirname( __DIR__ ), 'url' => $url, 'version' => $GLOBALS['wgVersion'] ) ) ); @@ -376,7 +377,7 @@ class WebInstaller extends Installer { $args = func_get_args(); array_shift( $args ); $args = array_map( 'htmlspecialchars', $args ); - $msg = wfMsgReal( $msg, $args, false, false, false ); + $msg = wfMessage( $msg, $args )->useDatabase( false )->plain(); $this->output->addHTML( $this->getErrorBox( $msg ) ); } @@ -655,7 +656,7 @@ class WebInstaller extends Installer { $args = func_get_args(); array_shift( $args ); $args = array_map( 'htmlspecialchars', $args ); - $text = wfMsgReal( $msg, $args, false, false, false ); + $text = wfMessage( $msg, $args )->useDatabase( false )->plain(); $html = $this->parse( $text, true ); return "
\n" . @@ -685,7 +686,7 @@ class WebInstaller extends Installer { $args = func_get_args(); array_shift( $args ); $html = '
' . - $this->parse( wfMsgReal( $msg, $args, false, false, false ) ) . + $this->parse( wfMessage( $msg, $args )->useDatabase( false )->plain() ) . "
\n"; $this->output->addHTML( $html ); }