X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=e87b200f5449b518924289e08bcc0aee2e25c6de;hb=9a4bef5f14562fc3c5e72d7177a51eae914f53e0;hp=2bf2507b0b96f552ba48b5e1bfca7dbffb794c78;hpb=54bd7598d6222c04d191def490a0f71d1f81870a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 2bf2507b0b..e87b200f54 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -50,27 +50,27 @@ if ( $wgLoadScript === false ) $wgLoadScript = "$wgScriptPath/load$wgScriptExten if ( $wgArticlePath === false ) { if ( $wgUsePathInfo ) { - $wgArticlePath = "$wgScript/$1"; + $wgArticlePath = "$wgScript/$1"; } else { - $wgArticlePath = "$wgScript?title=$1"; + $wgArticlePath = "$wgScript?title=$1"; } } -if ( !empty($wgActionPaths) && !isset($wgActionPaths['view']) ) { +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 ( !empty($wgActionPaths) && !isset($wgActionPaths['view']) ) { +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 ; + $wgActionPaths['view'] = $wgArticlePath; } if ( $wgStylePath === false ) $wgStylePath = "$wgScriptPath/skins"; if ( $wgLocalStylePath === false ) $wgLocalStylePath = "$wgScriptPath/skins"; -if ( $wgStyleDirectory === false ) $wgStyleDirectory = "$IP/skins"; +if ( $wgStyleDirectory === false ) $wgStyleDirectory = "$IP/skins"; if ( $wgExtensionAssetsPath === false ) $wgExtensionAssetsPath = "$wgScriptPath/extensions"; if ( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/wiki.png"; @@ -323,7 +323,7 @@ if ( !$wgEnotifMinorEdits ) { } # $wgDisabledActions is deprecated as of 1.18 -foreach( $wgDisabledActions as $action ){ +foreach( $wgDisabledActions as $action ) { $wgActions[$action] = false; } @@ -337,7 +337,7 @@ if ( !$wgHtml5Version && $wgHtml5 && $wgAllowRdfaAttributes ) { } # Blacklisted file extensions shouldn't appear on the "allowed" list -$wgFileExtensions = array_diff ( $wgFileExtensions, $wgFileBlacklist ); +$wgFileExtensions = array_values( array_diff ( $wgFileExtensions, $wgFileBlacklist ) ); if ( $wgArticleCountMethod === null ) { $wgArticleCountMethod = $wgUseCommaCount ? 'comma' : 'link'; @@ -353,9 +353,9 @@ if ( $wgAjaxUploadDestCheck ) { if ( $wgNewUserLog ) { # Add a new log type - $wgLogTypes[] = 'newusers'; - $wgLogNames['newusers'] = 'newuserlogpage'; - $wgLogHeaders['newusers'] = 'newuserlogpagetext'; + $wgLogTypes[] = 'newusers'; + $wgLogNames['newusers'] = 'newuserlogpage'; + $wgLogHeaders['newusers'] = 'newuserlogpagetext'; $wgLogActionsHandlers['newusers/newusers'] = 'NewUsersLogFormatter'; $wgLogActionsHandlers['newusers/create'] = 'NewUsersLogFormatter'; $wgLogActionsHandlers['newusers/create2'] = 'NewUsersLogFormatter';