X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FSetup.php;h=4717d1af51590cf57a29d7aff6dedd3b043b1a6f;hb=743547c20b382e75423037dc9836744575697bf7;hp=420298504f0d942d8322962c756e231444ba83fc;hpb=ac619fc4a60f4d7538b0fda496f25d2eb7f0c220;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 420298504f..4717d1af51 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -368,19 +368,6 @@ foreach ( $wgForeignFileRepos as &$repo ) { unset( $repo ); // no global pollution; destroy reference $rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 ); -if ( $wgRCFilterByAge ) { - // Trim down $wgRCLinkDays so that it only lists links which are valid - // as determined by $wgRCMaxAge. - // Note that we allow 1 link higher than the max for things like 56 days but a 60 day link. - sort( $wgRCLinkDays ); - - foreach ( $wgRCLinkDays as $i => $days ) { - if ( $days >= $rcMaxAgeDays ) { - array_splice( $wgRCLinkDays, $i + 1 ); - break; - } - } -} // Ensure that default user options are not invalid, since that breaks Special:Preferences $wgDefaultUserOptions['rcdays'] = min( $wgDefaultUserOptions['rcdays'], @@ -483,25 +470,7 @@ $wgMinUploadChunkSize = min( * Definitions of the NS_ constants are in Defines.php * @private */ -$wgCanonicalNamespaceNames = [ - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_TALK => 'Talk', - NS_USER => 'User', - NS_USER_TALK => 'User_talk', - NS_PROJECT => 'Project', - NS_PROJECT_TALK => 'Project_talk', - NS_FILE => 'File', - NS_FILE_TALK => 'File_talk', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Template_talk', - NS_HELP => 'Help', - NS_HELP_TALK => 'Help_talk', - NS_CATEGORY => 'Category', - NS_CATEGORY_TALK => 'Category_talk', -]; +$wgCanonicalNamespaceNames = NamespaceInfo::$canonicalNames; /// @todo UGLY UGLY if ( is_array( $wgExtraNamespaces ) ) {