From: Antoine Musso Date: Wed, 9 Jun 2004 01:18:04 +0000 (+0000) Subject: Replace almost all double quotes by single quotes for plain text strings. X-Git-Tag: 1.5.0alpha1~2982 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=97ccdc22a8b3cbbc9eb81f9ddc45d02879af5152;p=lhc%2Fweb%2Fwiklou.git Replace almost all double quotes by single quotes for plain text strings. --- diff --git a/includes/Skin.php b/includes/Skin.php index fa842d116f..2e23733f81 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1,7 +1,7 @@ "Standard", - 'nostalgia' => "Nostalgia", - 'cologneblue' => "CologneBlue" + 'standard' => 'Standard', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'CologneBlue' ); if( $wgUsePHPTal ) { - #$wgValidSkinNames[] = "PHPTal"; - #$wgValidSkinNames['davinci'] = "DaVinci"; - #$wgValidSkinNames['mono'] = "Mono"; - $wgValidSkinNames['monobook'] = "MonoBook"; - $wgValidSkinNames['myskin'] = "MySkin"; - #$wgValidSkinNames['monobookminimal'] = "MonoBookMinimal"; + #$wgValidSkinNames[] = 'PHPTal'; + #$wgValidSkinNames['davinci'] = 'DaVinci'; + #$wgValidSkinNames['mono'] = 'Mono'; + $wgValidSkinNames['monobook'] = 'MonoBook'; + $wgValidSkinNames['myskin'] = 'MySkin'; + #$wgValidSkinNames['monobookminimal'] = 'MonoBookMinimal'; } -require_once( "RecentChange.php" ); +require_once( 'RecentChange.php' ); class RCCacheEntry extends RecentChange { @@ -50,7 +50,7 @@ class Skin { function Skin() { - $this->linktrail = wfMsg("linktrail"); + $this->linktrail = wfMsg('linktrail'); } function getSkinNames() @@ -61,7 +61,7 @@ class Skin { function getStylesheet() { - return "wikistandard.css"; + return 'wikistandard.css'; } function qbSetting() @@ -69,17 +69,17 @@ class Skin { global $wgOut, $wgUser; if ( $wgOut->isQuickbarSuppressed() ) { return 0; } - $q = $wgUser->getOption( "quickbar" ); - if ( "" == $q ) { $q = 0; } + $q = $wgUser->getOption( 'quickbar' ); + if ( '' == $q ) { $q = 0; } return $q; } function initPage( &$out ) { - $fname = "Skin::initPage"; + $fname = 'Skin::initPage'; wfProfileIn( $fname ); - $out->addLink( array( "rel" => "shortcut icon", "href" => "/favicon.ico" ) ); + $out->addLink( array( 'rel' => 'shortcut icon', 'href' => '/favicon.ico' ) ); $this->addMetadataLinks($out); @@ -96,16 +96,16 @@ class Skin { $out->addMetadataLink( array( 'title' => 'Creative Commons', 'type' => 'application/rdf+xml', - 'href' => $wgTitle->getLocalURL( "action=creativecommons") ) ); + 'href' => $wgTitle->getLocalURL( 'action=creativecommons') ) ); } if( $wgEnableDublinCoreRdf ) { $out->addMetadataLink( array( 'title' => 'Dublin Core', 'type' => 'application/rdf+xml', - 'href' => $wgTitle->getLocalURL( "action=dublincore" ) ) ); + 'href' => $wgTitle->getLocalURL( 'action=dublincore' ) ) ); } } - $copyright = ""; + $copyright = ''; if( $wgRightsPage ) { $copy = Title::newFromText( $wgRightsPage ); if( $copy ) { @@ -117,15 +117,15 @@ class Skin { } if( $copyright ) { $out->addLink( array( - "rel" => "copyright", - "href" => $copyright ) ); + 'rel' => 'copyright', + 'href' => $copyright ) ); } } function outputPage( &$out ) { global $wgDebugComments; - wfProfileIn( "Skin::outputPage" ); + wfProfileIn( 'Skin::outputPage' ); $this->initPage( $out ); $out->out( $out->headElement() ); @@ -175,19 +175,19 @@ class Skin { { global $wgUser; - $s = ""; - if ( 1 == $wgUser->getOption( "underline" ) ) { + $s = ''; + if ( 1 == $wgUser->getOption( 'underline' ) ) { # Don't override browser settings } else { # CHECK MERGE @@@ # Force no underline - $s .= "a { " . + $s .= 'a { ' . "text-decoration: none; }\n"; } - if ( 1 == $wgUser->getOption( "highlightbroken" ) ) { + if ( 1 == $wgUser->getOption( 'highlightbroken' ) ) { $s .= "a.new, #quickbar a.new { color: #CC2200; }\n"; } - if ( 1 == $wgUser->getOption( "justify" ) ) { + if ( 1 == $wgUser->getOption( 'justify' ) ) { $s .= "#article { text-align: justify; }\n"; } return $s; @@ -200,13 +200,13 @@ class Skin { extract( $wgRequest->getValues( 'oldid', 'redirect', 'diff' ) ); if ( 0 != $wgTitle->getNamespace() ) { - $a = array( "bgcolor" => "#ffffec" ); + $a = array( 'bgcolor' => '#ffffec' ); } - else $a = array( "bgcolor" => "#FFFFFF" ); - if($wgOut->isArticle() && $wgUser->getOption("editondblclick") && + else $a = array( 'bgcolor' => '#FFFFFF' ); + if($wgOut->isArticle() && $wgUser->getOption('editondblclick') && (!$wgTitle->isProtected() || $wgUser->isSysop()) ) { - $t = wfMsg( "editthispage" ); - $oid = $red = ""; + $t = wfMsg( 'editthispage' ); + $oid = $red = ''; if ( !empty($redirect) ) { $red = "&redirect={$redirect}"; } @@ -214,8 +214,8 @@ class Skin { $oid = "&oldid={$oldid}"; } $s = $wgTitle->getFullURL( "action=edit{$oid}{$red}" ); - $s = "document.location = \"" .$s ."\";"; - $a += array ("ondblclick" => $s); + $s = 'document.location = "' .$s .'";'; + $a += array ('ondblclick' => $s); } $a['onload'] = $wgOut->getOnloadHandler(); @@ -228,12 +228,12 @@ class Skin { $link = urldecode( $link ); $link = $wgLang->checkTitleEncoding( $link ); - $link = str_replace( "_", " ", $link ); + $link = str_replace( '_', ' ', $link ); $link = wfEscapeHTML( $link ); $r = ($class != '') ? " class='$class'" : " class='external'"; - if ( 1 == $wgUser->getOption( "hover" ) ) { + if ( 1 == $wgUser->getOption( 'hover' ) ) { $r .= " title=\"{$link}\""; } return $r; @@ -244,18 +244,18 @@ class Skin { global $wgUser, $wgOut; $link = urldecode( $link ); - $link = str_replace( "_", " ", $link ); + $link = str_replace( '_', ' ', $link ); $link = wfEscapeHTML( $link ); - if ( $broken == "stub" ) { - $r = " class='stub'"; - } else if ( $broken == "yes" ) { - $r = " class='new'"; + if ( $broken == 'stub' ) { + $r = ' class="stub"'; + } else if ( $broken == 'yes' ) { + $r = ' class="new"'; } else { - $r = ""; + $r = ''; } - if ( 1 == $wgUser->getOption( "hover" ) ) { + if ( 1 == $wgUser->getOption( 'hover' ) ) { $r .= " title=\"{$link}\""; } return $r; @@ -265,15 +265,15 @@ class Skin { { global $wgUser, $wgOut; - if ( $broken == "stub" ) { - $r = " class='stub'"; - } else if ( $broken == "yes" ) { - $r = " class='new'"; + if ( $broken == 'stub' ) { + $r = ' class="stub"'; + } else if ( $broken == 'yes' ) { + $r = ' class="new"'; } else { - $r = ""; + $r = ''; } - if ( 1 == $wgUser->getOption( "hover" ) ) { + if ( 1 == $wgUser->getOption( 'hover' ) ) { $r .= ' title ="' . $nt->getEscapedText() . '"'; } return $r; @@ -295,7 +295,7 @@ class Skin { if( $wgSiteNotice ) { $note = "\n
$wgSiteNotice
\n"; } else { - $note = ""; + $note = ''; } return $this->doBeforeContent() . $note; } @@ -303,19 +303,19 @@ class Skin { function doBeforeContent() { global $wgUser, $wgOut, $wgTitle, $wgLang; - $fname = "Skin::doBeforeContent"; + $fname = 'Skin::doBeforeContent'; wfProfileIn( $fname ); - $s = ""; + $s = ''; $qb = $this->qbSetting(); if( $langlinks = $this->otherLanguages() ) { $rows = 2; - $borderhack = ""; + $borderhack = ''; } else { $rows = 1; $langlinks = false; - $borderhack = "class='top'"; + $borderhack = 'class="top"'; } $s .= "\n
\n
\n" . @@ -327,11 +327,11 @@ class Skin { if ( !$shove ) { $s .= "\n" . - $this->logoText() . ""; + $this->logoText() . ''; } elseif( $left ) { $s .= $this->getQuickbarCompensator( $rows ); } - $l = $wgLang->isRTL() ? "right" : "left"; + $l = $wgLang->isRTL() ? 'right' : 'left'; $s .= "\n"; $s .= $this->topLinks() ; @@ -362,17 +362,17 @@ class Skin { function getCategoryLinks () { global $wgOut, $wgTitle, $wgUser, $wgParser; global $wgUseCategoryMagic, $wgUseCategoryBrowser, $wgLang; - if( !$wgUseCategoryMagic ) return "" ; - if( count( $wgOut->mCategoryLinks ) == 0 ) return ""; - if( !$wgOut->isArticle() ) return ""; + if( !$wgUseCategoryMagic ) return '' ; + if( count( $wgOut->mCategoryLinks ) == 0 ) return ''; + if( !$wgOut->isArticle() ) return ''; - $t = implode ( " | " , $wgOut->mCategoryLinks ) ; - $s = $this->makeKnownLink( "Special:Categories", - wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) ) - . ": " . $t; + $t = implode ( ' | ' , $wgOut->mCategoryLinks ) ; + $s = $this->makeKnownLink( 'Special:Categories', + wfMsg( 'categories' ), 'article=' . urlencode( $wgTitle->getPrefixedDBkey() ) ) + . ': ' . $t; if($wgUseCategoryBrowser) { - $s .= "

"; + $s .= '

'; $catstack = array(); $s.= $wgTitle->getAllParentCategories(&$catstack); } @@ -413,16 +413,16 @@ class Skin { function doAfterContent() { global $wgUser, $wgOut, $wgLang; - $fname = "Skin::doAfterContent"; + $fname = 'Skin::doAfterContent'; wfProfileIn( $fname ); - wfProfileIn( "$fname-1" ); + wfProfileIn( $fname.'-1' ); $s = "\n

\n"; $s .= "\n\n
\n"; - wfProfileOut( "$fname-3" ); - wfProfileIn( "$fname-4" ); + wfProfileOut( $fname.'-3' ); + wfProfileIn( $fname.'-4' ); if ( 0 != $qb ) { $s .= $this->quickBar(); } - wfProfileOut( "$fname-4" ); + wfProfileOut( $fname.'-4' ); wfProfileOut( $fname ); return $s; } @@ -466,7 +466,7 @@ class Skin { $action = $wgRequest->getText( 'action' ); $s = $this->printableLink(); - if ( wfMsg ( "disclaimers" ) != "-" ) $s .= " | " . $this->makeKnownLink( wfMsg( "disclaimerpage" ), wfMsg( "disclaimers" ) ) ; + if ( wfMsg ( 'disclaimers' ) != '-' ) $s .= ' | ' . $this->makeKnownLink( wfMsg( 'disclaimerpage' ), wfMsg( 'disclaimers' ) ) ; if ( $wgOut->isArticleRelated() ) { if ( $wgTitle->getNamespace() == Namespace::getImage() ) { @@ -479,16 +479,16 @@ class Skin { if ( isset ( $wgUseApproval ) && $wgUseApproval ) { $t = $wgTitle->getDBkey(); - $name = "Approve this article" ; + $name = 'Approve this article' ; $link = "http://test.wikipedia.org/w/magnus/wiki.phtml?title={$t}&action=submit&doit=1" ; #wfEscapeHTML( wfImageUrl( $name ) ); $style = $this->getExternalLinkAttributes( $link, $name ); $s .= " | {$name}" ; } } - if ( "history" == $action || isset( $diff ) || isset( $oldid ) ) { - $s .= " | " . $this->makeKnownLink( $wgTitle->getPrefixedText(), - wfMsg( "currentrev" ) ); + if ( 'history' == $action || isset( $diff ) || isset( $oldid ) ) { + $s .= ' | ' . $this->makeKnownLink( $wgTitle->getPrefixedText(), + wfMsg( 'currentrev' ) ); } if ( $wgUser->getNewtalk() ) { @@ -500,14 +500,14 @@ class Skin { $n =$wgUser->getName(); $tl = $this->makeKnownLink( $wgLang->getNsText( Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}", - wfMsg("newmessageslink") ); - $s.=" | ". wfMsg( "newmessages", $tl ) . ""; + wfMsg('newmessageslink') ); + $s.= ' | '. wfMsg( 'newmessages', $tl ) . ''; } } $undelete = $this->getUndeleteLink(); if( !empty( $undelete ) ) { - $s .= " | $undelete"; + $s .= ' | '.$undelete; } return $s; } @@ -517,12 +517,12 @@ class Skin { if( $wgUser->isSysop() && (($wgTitle->getArticleId() == 0) || ($action == "history")) && ($n = $wgTitle->isDeleted() ) ) { - return wfMsg( "thisisdeleted", + return wfMsg( 'thisisdeleted', $this->makeKnownLink( - $wgLang->SpecialPage( "Undelete/" . $wgTitle->getPrefixedDBkey() ), - wfMsg( "restorelink", $n ) ) ); + $wgLang->SpecialPage( 'Undelete/' . $wgTitle->getPrefixedDBkey() ), + wfMsg( 'restorelink', $n ) ) ); } - return ""; + return ''; } function printableLink() @@ -530,15 +530,15 @@ class Skin { global $wgOut, $wgFeedClasses, $wgRequest; $baseurl = $_SERVER['REQUEST_URI']; - if( strpos( "?", $baseurl ) == false ) { - $baseurl .= "?"; + if( strpos( '?', $baseurl ) == false ) { + $baseurl .= '?'; } else { - $baseurl .= "&"; + $baseurl .= '&'; } $baseurl = htmlspecialchars( $baseurl ); - $printurl = $wgRequest->escapeAppendQuery( "printable=yes" ); + $printurl = $wgRequest->escapeAppendQuery( 'printable=yes' ); - $s = "" . wfMsg( "printableversion" ) . ""; + $s = "" . wfMsg( 'printableversion' ) . ''; if( $wgOut->isSyndicated() ) { foreach( $wgFeedClasses as $format => $class ) { $feedurl = $wgRequest->escapeAppendQuery( "feed=$format" ); @@ -552,8 +552,8 @@ class Skin { { global $wgOut, $wgTitle, $wgUser; - $s = "

" . htmlspecialchars( $wgOut->getPageTitle() ) . "

"; - if($wgUser->getOption("editsectiononrightclick") && $wgTitle->userCanEdit()) { $s=$this->editSectionScript(0,$s);} + $s = '

' . htmlspecialchars( $wgOut->getPageTitle() ) . '

'; + if($wgUser->getOption( 'editsectiononrightclick' ) && $wgTitle->userCanEdit()) { $s=$this->editSectionScript(0,$s);} return $s; } @@ -562,9 +562,9 @@ class Skin { global $wgOut; $sub = $wgOut->getSubtitle(); - if ( "" == $sub ) { + if ( '' == $sub ) { global $wgExtraSubtitle; - $sub = wfMsg( "fromwikipedia" ) . $wgExtraSubtitle; + $sub = wfMsg( 'fromwikipedia' ) . $wgExtraSubtitle; } $subpages = $this->subPageSubtitle(); $sub .= !empty($subpages)?"

$subpages":''; @@ -578,23 +578,23 @@ class Skin { $subpages = ''; if($wgOut->isArticle() && !empty($wgNamespacesWithSubpages[$wgTitle->getNamespace()])) { $ptext=$wgTitle->getPrefixedText(); - if(preg_match("/\//",$ptext)) { - $links=explode("/",$ptext); - $c=0; - $growinglink=""; + if(preg_match('/\//',$ptext)) { + $links = explode('/',$ptext); + $c = 0; + $growinglink = ''; foreach($links as $link) { $c++; if ($cmakeLink( $growinglink, $link ); - if(preg_match("/class='new'/i",$getlink)) { break; } # this is a hack, but it saves time + if(preg_match('/class="new"/i',$getlink)) { break; } # this is a hack, but it saves time if ($c>1) { - $subpages .= " | "; + $subpages .= ' | '; } else { - $subpages .="< "; + $subpages .= '< '; } $subpages .= $getlink; - $growinglink.="/"; + $growinglink .= '/'; } } } @@ -606,30 +606,30 @@ class Skin { { global $wgUser, $wgTitle, $wgLang, $wgShowIPinHeader, $wgIP; - $li = $wgLang->specialPage( "Userlogin" ); - $lo = $wgLang->specialPage( "Userlogout" ); + $li = $wgLang->specialPage( 'Userlogin' ); + $lo = $wgLang->specialPage( 'Userlogout' ); - $s = ""; + $s = ''; if ( 0 == $wgUser->getID() ) { - if( $wgShowIPinHeader && isset( $_COOKIE[ini_get("session.name")] ) ) { + if( $wgShowIPinHeader && isset( $_COOKIE[ini_get('session.name')] ) ) { $n = $wgIP; $tl = $this->makeKnownLink( $wgLang->getNsText( Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}", $wgLang->getNsText( Namespace::getTalk( 0 ) ) ); - $s .= $n . " (".$tl.")"; + $s .= $n . ' ('.$tl.')'; } else { - $s .= wfMsg("notloggedin"); + $s .= wfMsg('notloggedin'); } $rt = $wgTitle->getPrefixedURL(); if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) { - $q = ""; + $q = ''; } else { $q = "returnto={$rt}"; } $s .= "\n
" . $this->makeKnownLink( $li, - wfMsg( "login" ), $q ); + wfMsg( 'login' ), $q ); } else { $n = $wgUser->getName(); $rt = $wgTitle->getPrefixedURL(); @@ -641,18 +641,18 @@ class Skin { $s .= $this->makeKnownLink( $wgLang->getNsText( Namespace::getUser() ) . ":{$n}", $n ) . "{$tl}
" . - $this->makeKnownLink( $lo, wfMsg( "logout" ), - "returnto={$rt}" ) . " | " . - $this->specialLink( "preferences" ); + $this->makeKnownLink( $lo, wfMsg( 'logout' ), + "returnto={$rt}" ) . ' | ' . + $this->specialLink( 'preferences' ); } - $s .= " | " . $this->makeKnownLink( wfMsg( "helppage" ), - wfMsg( "help" ) ); + $s .= ' | ' . $this->makeKnownLink( wfMsg( 'helppage' ), + wfMsg( 'help' ) ); return $s; } function getSearchLink() { - $searchPage =& Title::makeTitle( NS_SPECIAL, "Search" ); + $searchPage =& Title::makeTitle( NS_SPECIAL, 'Search' ); return $searchPage->getLocalURL(); } @@ -665,12 +665,12 @@ class Skin { global $wgRequest; $search = $wgRequest->getText( 'search' ); - $s = "

escapeSearchLink() . "\">\n" - . "\n" - . " " - . "\n
"; + . ' ' + . '\n"; return $s; } @@ -681,7 +681,7 @@ class Skin { $sep = " |\n"; $s = $this->mainPageLink() . $sep - . $this->specialLink( "recentchanges" ); + . $this->specialLink( 'recentchanges' ); if ( $wgOut->isArticleRelated() ) { $s .= $sep . $this->editThisPage() @@ -698,9 +698,9 @@ class Skin { global $wgOut, $wgUser, $wgTitle; $sep = " |\n"; - $s = ""; + $s = ''; if ( $wgOut->isArticleRelated() ) { - $s .= "" . $this->editThisPage() . ""; + $s .= '' . $this->editThisPage() . ''; if ( 0 != $wgUser->getID() ) { $s .= $sep . $this->watchThisPage(); } @@ -741,21 +741,21 @@ class Skin { global $wgDisableCounters; extract( $wgRequest->getValues( 'oldid', 'diff' ) ); - if ( ! $wgOut->isArticle() ) { return ""; } - if ( isset( $oldid ) || isset( $diff ) ) { return ""; } - if ( 0 == $wgArticle->getID() ) { return ""; } + if ( ! $wgOut->isArticle() ) { return ''; } + if ( isset( $oldid ) || isset( $diff ) ) { return ''; } + if ( 0 == $wgArticle->getID() ) { return ''; } - $s = ""; + $s = ''; if ( !$wgDisableCounters ) { $count = $wgLang->formatNum( $wgArticle->getCount() ); if ( $count ) { - $s = wfMsg( "viewcount", $count ); + $s = wfMsg( 'viewcount', $count ); } } - $s .= " " . $this->getCredits(); + $s .= ' ' . $this->getCredits(); - return $s . " " . $this->getCopyright(); + return $s . ' ' . $this->getCopyright(); } function getCredits() { @@ -768,7 +768,7 @@ class Skin { } else { $s = $this->getAuthorCredits(); if ($wgMaxCredits > 1) { - $s .= " " . $this->getContributorCredits(); + $s .= ' ' . $this->getContributorCredits(); } } @@ -781,13 +781,13 @@ class Skin { $last_author = $wgArticle->getUser(); if ($last_author == 0) { - $author_credit = wfMsg("anonymous"); + $author_credit = wfMsg('anonymous'); } else { $real_name = User::whoIsReal($last_author); if (!empty($real_name)) { $author_credit = $real_name; } else { - $author_credit = wfMsg("siteuser", User::whoIs($last_author)); + $author_credit = wfMsg('siteuser', User::whoIs($last_author)); } } @@ -795,9 +795,9 @@ class Skin { if ( $timestamp ) { $d = $wgLang->timeanddate( $wgArticle->getTimestamp(), true ); } else { - $d = ""; + $d = ''; } - return wfMsg("lastmodifiedby", $d, $author_credit); + return wfMsg('lastmodifiedby', $d, $author_credit); } function getContributorCredits() { @@ -827,23 +827,23 @@ class Skin { $user = $wgLang->listToText(array_values($user_names)); if (!empty($user)) { - $user = wfMsg("siteusers", $user); + $user = wfMsg('siteusers', $user); } if ($contributors[0] && $contributors[0][0] > 0) { - $anon = wfMsg("anonymous"); + $anon = wfMsg('anonymous'); } else { $anon = ''; } $creds = $wgLang->listToText(array($real, $user, $anon)); - return wfMsg("othercontribs", $creds); + return wfMsg('othercontribs', $creds); } function getCopyright() { global $wgRightsPage, $wgRightsUrl, $wgRightsText; - $out = ""; + $out = ''; if( $wgRightsPage ) { $link = $this->makeKnownLink( $wgRightsPage, $wgRightsText ); } elseif( $wgRightsUrl ) { @@ -852,23 +852,23 @@ class Skin { # Give up now return $out; } - $out .= wfMsg( "copyright", $link ); + $out .= wfMsg( 'copyright', $link ); return $out; } function getCopyrightIcon() { global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgRightsIcon; - $out = ""; + $out = ''; if( $wgRightsIcon ) { $icon = htmlspecialchars( $wgRightsIcon ); if( $wgRightsUrl ) { $url = htmlspecialchars( $wgRightsUrl ); - $out .= ""; + $out .= ''; } $text = htmlspecialchars( $wgRightsText ); $out .= "$text"; if( $wgRightsUrl ) { - $out .= ""; + $out .= ''; } } return $out; @@ -877,7 +877,7 @@ class Skin { function getPoweredBy() { global $wgStylePath; $url = htmlspecialchars( "$wgStylePath/images/poweredby_mediawiki_88x31.png" ); - $img = "MediaWiki"; + $img = 'MediaWiki'; return $img; } @@ -888,23 +888,23 @@ class Skin { $timestamp = $wgArticle->getTimestamp(); if ( $timestamp ) { $d = $wgLang->timeanddate( $wgArticle->getTimestamp(), true ); - $s = " " . wfMsg( "lastmodified", $d ); + $s = ' ' . wfMsg( 'lastmodified', $d ); } else { - $s = ""; + $s = ''; } return $s; } - function logoText( $align = "" ) + function logoText( $align = '' ) { - if ( "" != $align ) { $a = " align='{$align}'"; } - else { $a = ""; } + if ( '' != $align ) { $a = ' align="'.$align.'"'; } + else { $a = ''; } - $mp = wfMsg( "mainpage" ); + $mp = wfMsg( 'mainpage' ); $titleObj = Title::newFromText( $mp ); - $s = "escapeLocalURL() - . "\">getLogo() . "\" alt=\"" . "[{$mp}]\" />"; + $s = '"; return $s; } @@ -913,7 +913,7 @@ class Skin { global $wgOut, $wgTitle, $wgUser, $wgRequest, $wgLang; global $wgDisableUploads, $wgRemoteUploads; - $fname = "Skin::quickBar"; + $fname = 'Skin::quickBar'; wfProfileIn( $fname ); $action = $wgRequest->getText( 'action' ); @@ -925,69 +925,69 @@ class Skin { $sep = "\n
"; $s .= $this->mainPageLink() - . $sep . $this->specialLink( "recentchanges" ) - . $sep . $this->specialLink( "randompage" ); + . $sep . $this->specialLink( 'recentchanges' ) + . $sep . $this->specialLink( 'randompage' ); if ($wgUser->getID()) { - $s.= $sep . $this->specialLink( "watchlist" ) ; - $s .= $sep .$this->makeKnownLink( $wgLang->specialPage( "Contributions" ), - wfMsg( "mycontris" ), "target=" . wfUrlencode($wgUser->getName() ) ); + $s.= $sep . $this->specialLink( 'watchlist' ) ; + $s .= $sep .$this->makeKnownLink( $wgLang->specialPage( 'Contributions' ), + wfMsg( 'mycontris' ), 'target=' . wfUrlencode($wgUser->getName() ) ); } // only show watchlist link if logged in - if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ; + if ( wfMsg ( 'currentevents' ) != '-' ) $s .= $sep . $this->makeKnownLink( wfMsg( 'currentevents' ), '' ) ; $s .= "\n

"; $articleExists = $wgTitle->getArticleId(); - if ( $wgOut->isArticle() || $action =="edit" || $action =="history" || $wpPreview) { + if ( $wgOut->isArticle() || $action =='edit' || $action =='history' || $wpPreview) { if($wgOut->isArticle()) { - $s .= "" . $this->editThisPage() . ""; + $s .= '' . $this->editThisPage() . ''; } else { # backlink to the article in edit or history mode if($articleExists){ # no backlink if no article switch($tns) { case 0: - $text = wfMsg("articlepage"); + $text = wfMsg('articlepage'); break; case 1: - $text = wfMsg("viewtalkpage"); + $text = wfMsg('viewtalkpage'); break; case 2: - $text = wfMsg("userpage"); + $text = wfMsg('userpage'); break; case 3: - $text = wfMsg("viewtalkpage"); + $text = wfMsg('viewtalkpage'); break; case 4: - $text = wfMsg("wikipediapage"); + $text = wfMsg('wikipediapage'); break; case 5: - $text = wfMsg("viewtalkpage"); + $text = wfMsg('viewtalkpage'); break; case 6: - $text = wfMsg("imagepage"); + $text = wfMsg('imagepage'); break; case 7: - $text = wfMsg("viewtalkpage"); + $text = wfMsg('viewtalkpage'); break; default: - $text= wfMsg("articlepage"); + $text= wfMsg('articlepage'); } $link = $wgTitle->getText(); if ($nstext = $wgLang->getNsText($tns) ) { # add namespace if necessary - $link = $nstext . ":" . $link ; + $link = $nstext . ':' . $link ; } $s .= $this->makeLink( $link, $text ); } elseif( $wgTitle->getNamespace() != Namespace::getSpecial() ) { # we just throw in a "New page" text to tell the user that he's in edit mode, # and to avoid messing with the separator that is prepended to the next item - $s .= "" . wfMsg("newpage") . ""; + $s .= '' . wfMsg('newpage') . ''; } } - if( $tns%2 && $action!="edit" && !$wpPreview) { - $s.="
".$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg("postcomment"),"action=edit§ion=new"); + if( $tns%2 && $action!='edit' && !$wpPreview) { + $s.= '
'.$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg('postcomment'),'action=edit§ion=new'); } /* @@ -997,7 +997,7 @@ class Skin { unwatched. Therefore we do not show the "Watch this page" link in edit mode */ if ( 0 != $wgUser->getID() && $articleExists) { - if($action!="edit" && $action != "submit" ) + if($action!='edit' && $action != 'submit' ) { $s .= $sep . $this->watchThisPage(); } @@ -1009,7 +1009,7 @@ class Skin { $sep . $this->protectThisPage(); } $s .= $sep . $this->talkLink(); - if ($articleExists && $action !="history") { + if ($articleExists && $action !='history') { $s .= $sep . $this->historyLink(); } $s.=$sep . $this->whatLinksHere(); @@ -1038,15 +1038,15 @@ class Skin { } if ( 0 != $wgUser->getID() && ( !$wgDisableUploads || $wgRemoteUploads ) ) { - $s .= $this->specialLink( "upload" ) . $sep; + $s .= $this->specialLink( 'upload' ) . $sep; } - $s .= $this->specialLink( "specialpages" ) + $s .= $this->specialLink( 'specialpages' ) . $sep . $this->bugReportsLink(); global $wgSiteSupportPage; if( $wgSiteSupportPage ) { $s .= "\n
" . wfMsg( "sitesupport" ) . ""; + '" class="internal">' . wfMsg( 'sitesupport' ) . ''; } $s .= "\n
\n"; @@ -1060,27 +1060,27 @@ class Skin { $a = array(); $pages = SpecialPage::getPages(); - foreach ( $pages[""] as $name => $page ) { + foreach ( $pages[''] as $name => $page ) { $a[$name] = $page->getDescription(); } if ( $wgUser->isSysop() ) { - foreach ( $pages["sysop"] as $name => $page ) { + foreach ( $pages['sysop'] as $name => $page ) { $a[$name] = $page->getDescription(); } } if ( $wgUser->isDeveloper() ) { - foreach ( $pages["developer"] as $name => $page ) { + foreach ( $pages['developer'] as $name => $page ) { $a[$name] = $page->getDescription() ; } } - $go = wfMsg( "go" ); - $sp = wfMsg( "specialpages" ); - $spp = $wgLang->specialPage( "Specialpages" ); + $go = wfMsg( 'go' ); + $sp = wfMsg( 'specialpages' ); + $spp = $wgLang->specialPage( 'Specialpages' ); - $s = "
\n"; + $s = '\n"; $s .= "