X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstaller.php;h=c08212e39035956b966f9408ff2808ed0e2cf760;hb=fe922d470fbddff5617448e0d90df3e18c04644e;hp=7d09fd72fef075728e7c339960caa7e20e3587ff;hpb=f58eea9bbd887ebdd46a14660cfa2581ded83c39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 7d09fd72fe..c08212e390 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -1058,7 +1058,7 @@ class WebInstaller extends Installer { if ( !$status->isGood() ) { $text = $status->getWikiText(); - if ( $status->isOk() ) { + if ( $status->isOK() ) { $box = $this->getWarningBox( $text ); } else { $box = $this->getErrorBox( $text ); @@ -1149,13 +1149,27 @@ class WebInstaller extends Installer { */ public function downloadLinkHook( $text, $attribs, $parser ) { $anchor = Html::rawElement( 'a', - [ 'href' => $this->getURL( [ 'localsettings' => 1 ] ) ], + [ 'href' => $this->getUrl( [ 'localsettings' => 1 ] ) ], wfMessage( 'config-download-localsettings' )->parse() ); return Html::rawElement( 'div', [ 'class' => 'config-download-link' ], $anchor ); } + /** + * If the software package wants the LocalSettings.php file + * to be placed in a specific location, override this function + * (see mw-config/overrides/README) to return the path of + * where the file should be saved, or false for a generic + * "in the base of your install" + * + * @since 1.27 + * @return string|bool + */ + public function getLocalSettingsLocation() { + return false; + } + /** * @return bool */