Revert r87964: destroyed standard segregation of non-view action links outside of...
[lhc/web/wiklou.git] / includes / Setup.php
index 2ae28ad..f343c49 100644 (file)
@@ -47,6 +47,12 @@ 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";