Remove duplicate code from Setup.php
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 20 Apr 2013 14:57:56 +0000 (16:57 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 20 Apr 2013 16:25:15 +0000 (16:25 +0000)
Change-Id: I6dadb12ec8410258d7c9c24e1d12badf6c1c2dea

includes/Setup.php

index 08ab143..a5979ea 100644 (file)
@@ -61,12 +61,6 @@ if ( !empty( $wgActionPaths ) && !isset( $wgActionPaths['view'] ) ) {
        $wgActionPaths['view'] = $wgArticlePath;
 }
 
-if ( !empty( $wgActionPaths ) && !isset( $wgActionPaths['view'] ) ) {
-       # 'view' is assumed the default action path everywhere in the code
-       # but is rarely filled in $wgActionPaths
-       $wgActionPaths['view'] = $wgArticlePath;
-}
-
 if ( $wgStylePath === false ) $wgStylePath = "$wgScriptPath/skins";
 if ( $wgLocalStylePath === false ) $wgLocalStylePath = "$wgScriptPath/skins";
 if ( $wgStyleDirectory === false ) $wgStyleDirectory = "$IP/skins";