From: Antoine Musso Date: Sun, 14 Mar 2004 01:44:17 +0000 (+0000) Subject: Lighter version using a sub function to avoid repetiting code. Will ease futur status... X-Git-Tag: 1.3.0beta1~801 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=85403c05ddd438e2635acbb2c68033c4f9504e18;p=lhc%2Fweb%2Fwiklou.git Lighter version using a sub function to avoid repetiting code. Will ease futur status integration as well. --- diff --git a/includes/SpecialSpecialpages.php b/includes/SpecialSpecialpages.php index 9805fa5293..91e6163af8 100644 --- a/includes/SpecialSpecialpages.php +++ b/includes/SpecialSpecialpages.php @@ -2,26 +2,19 @@ function wfSpecialSpecialpages() { - global $wgUser, $wgOut, $wgLang; - - $wgOut->setRobotpolicy( "index,nofollow" ); - - $sk = $wgUser->getSkin(); - $validSP = $wgLang->getValidSpecialPages(); - $wgOut->addHTML( "

" . wfMsg( "spheading" ) . "

\n\n" ); - - if ( $wgUser->isSysop() ) { - $sysopSP = $wgLang->getSysopSpecialPages(); - $wgOut->addHTML( "

" . wfMsg( "sysopspheading" ) . "

\n