From 3907caf723afd62949471763bb78b6f716143d63 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 27 Jan 2005 00:43:53 +0000 Subject: [PATCH] singles quotes :o) --- includes/SpecialWhatlinkshere.php | 41 ++++++++++++++++--------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index df0c0754cb..fdcaaadc88 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -6,11 +6,12 @@ */ /** - * + * Entry point + * @param string $par An article name ?? */ function wfSpecialWhatlinkshere($par = NULL) { global $wgUser, $wgOut, $wgRequest; - $fname = "wfSpecialWhatlinkshere"; + $fname = 'wfSpecialWhatlinkshere'; $target = $wgRequest->getVal( 'target' ); $limit = $wgRequest->getInt( 'limit', 500 ); @@ -18,23 +19,23 @@ function wfSpecialWhatlinkshere($par = NULL) { if(!empty($par)) { $target = $par; } else if ( is_null( $target ) ) { - $wgOut->errorpage( "notargettitle", "notargettext" ); + $wgOut->errorpage( 'notargettitle', 'notargettext' ); return; } $nt = Title::newFromURL( $target ); if( !$nt ) { - $wgOut->errorpage( "notargettitle", "notargettext" ); + $wgOut->errorpage( 'notargettitle', 'notargettext' ); return; } $wgOut->setPagetitle( $nt->getPrefixedText() ); - $wgOut->setSubtitle( wfMsg( "linklistsub" ) ); + $wgOut->setSubtitle( wfMsg( 'linklistsub' ) ); $id = $nt->getArticleID(); $sk = $wgUser->getSkin(); - $isredir = " (" . wfMsg( "isredirect" ) . ")\n"; + $isredir = ' (' . wfMsg( 'isredirect' ) . ")\n"; - $wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."
\n"); + $wgOut->addHTML('< '.$sk->makeKnownLinkObj($nt, '', 'redirect=no' )."
\n"); $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'brokenlinks', 'links' ) ); @@ -44,9 +45,9 @@ function wfSpecialWhatlinkshere($par = NULL) { $res = $dbr->query( $sql, $fname ); if ( 0 == $dbr->numRows( $res ) ) { - $wgOut->addHTML( wfMsg( "nolinkshere" ) ); + $wgOut->addHTML( wfMsg( 'nolinkshere' ) ); } else { - $wgOut->addHTML( wfMsg( "linkshere" ) ); + $wgOut->addHTML( wfMsg( 'linkshere' ) ); $wgOut->addHTML( "\n