r5284 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5283‎ | r5284 | r5285 >
Date:23:25, 17 September 2004
Author:hashar
Status:old
Tags:
Comment:
single quotes
Modified paths:
  • /trunk/phase3/includes/SpecialSpecialpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialSpecialpages.php
@@ -11,23 +11,23 @@
1212 function wfSpecialSpecialpages() {
1313 global $wgLang, $wgOut, $wgUser;
1414
15 - $wgOut->setRobotpolicy( "index,nofollow" );
 15+ $wgOut->setRobotpolicy( 'index,nofollow' );
1616 $sk = $wgUser->getSkin();
1717
1818 # Get listable pages
1919 $pages = SpecialPage::getPages();
2020
2121 # all users special pages
22 - wfSpecialSpecialpages_gen($pages[""],"spheading",$sk);
 22+ wfSpecialSpecialpages_gen($pages[''],'spheading',$sk);
2323
2424 # sysops only special pages
2525 if ( $wgUser->isSysop() ) {
26 - wfSpecialSpecialpages_gen($pages["sysop"],"sysopspheading",$sk);
 26+ wfSpecialSpecialpages_gen($pages['sysop'],'sysopspheading',$sk);
2727 }
2828
2929 # developers only special pages
3030 if ( $wgUser->isDeveloper() ) {
31 - wfSpecialSpecialpages_gen($pages["developer"],"developerspheading",$sk);
 31+ wfSpecialSpecialpages_gen($pages['developer'],'developerspheading',$sk);
3232
3333 }
3434 }
@@ -41,7 +41,7 @@
4242 function wfSpecialSpecialpages_gen($pages,$heading,$sk) {
4343 global $wgLang, $wgOut, $wgAllowSysopQueries;
4444
45 - $wgOut->addHTML( "<h2>" . wfMsg( $heading ) . "</h2>\n<ul>" );
 45+ $wgOut->addHTML( '<h2>' . wfMsg( $heading ) . "</h2>\n<ul>" );
4646 foreach ( $pages as $name => $page ) {
4747 if( !$page->isListed() ) {
4848 continue;

Status & tagging log