installer: Use getUrl() for CSS link in WebInstallerOutput
authorFomafix <fomafix@googlemail.com>
Mon, 29 Oct 2018 06:18:50 +0000 (07:18 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 4 Nov 2018 21:00:00 +0000 (21:00 +0000)
This change changes the CSS URL in the stylesheet link from

  <link rel="stylesheet" href="/mediawiki/mw-config/index.php?css=1"/>

to

  <link rel="stylesheet" href="/mediawiki/mw-config/?css=1"/>

on the website /mediawiki/mw-config/.

Change-Id: Ib46c4d944df862cf928d3ebd050ff2d1e16ba6a5

includes/installer/WebInstallerOutput.php

index 6c1f2ec..950aaf7 100644 (file)
@@ -197,7 +197,7 @@ class WebInstallerOutput {
         * @return string
         */
        private function getCssUrl() {
-               return Html::linkedStyle( $_SERVER['PHP_SELF'] . '?css=1' );
+               return Html::linkedStyle( $this->parent->getUrl( [ 'css' => 1 ] ) );
        }
 
        public function useShortHeader( $use = true ) {