From: Antoine Musso Date: Fri, 3 Sep 2004 15:23:37 +0000 (+0000) Subject: Some comments X-Git-Tag: 1.5.0alpha1~2141 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=commitdiff_plain;h=64fcc0ed91ccd16b025c8c3320b303c0884214a4;p=lhc%2Fweb%2Fwiklou.git Some comments --- diff --git a/includes/SpecialRecentchangeslinked.php b/includes/SpecialRecentchangeslinked.php index e14ae9bb8a..fb4ecc881e 100644 --- a/includes/SpecialRecentchangeslinked.php +++ b/includes/SpecialRecentchangeslinked.php @@ -1,19 +1,20 @@ getInt( 'days' ); $target = $wgRequest->getText( 'target' ); @@ -25,33 +26,33 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { if( $par ) { $target = $par; } - if ( "" == $target ) { - $wgOut->errorpage( "notargettitle", "notargettext" ); + if ( $target == '') { + $wgOut->errorpage( 'notargettitle', 'notargettext' ); return; } $nt = Title::newFromURL( $target ); if( !$nt ) { - $wgOut->errorpage( "notargettitle", "notargettext" ); + $wgOut->errorpage( 'notargettitle', 'notargettext' ); return; } $id = $nt->getArticleId(); - $wgOut->setSubtitle( wfMsg( "rclsub", $nt->getPrefixedText() ) ); + $wgOut->setSubtitle( wfMsg( 'rclsub', $nt->getPrefixedText() ) ); if ( ! $days ) { - $days = $wgUser->getOption( "rcdays" ); + $days = $wgUser->getOption( 'rcdays' ); if ( ! $days ) { $days = 7; } } $days = (int)$days; - list( $limit, $offset ) = wfCheckLimits( 100, "rclimit" ); + list( $limit, $offset ) = wfCheckLimits( 100, 'rclimit' ); $dbr =& wfGetDB( DB_SLAVE ); $cutoff = $dbr->timestamp( time() - ( $days * 86400 ) ); $hideminor = ($hideminor ? 1 : 0); if ( $hideminor ) { - $mlink = $sk->makeKnownLink( $wgLang->specialPage( "Recentchangeslinked" ), - WfMsg( "show" ), "target=" . htmlspecialchars( $nt->getPrefixedURL() ) . + $mlink = $sk->makeKnownLink( $wgLang->specialPage( 'Recentchangeslinked' ), + WfMsg( 'show' ), 'target=' . htmlspecialchars( $nt->getPrefixedURL() ) . "&days={$days}&limit={$limit}&hideminor=0" ); } else { $mlink = $sk->makeKnownLink( $wgLang->specialPage( "Recentchangeslinked" ), @@ -59,8 +60,8 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { "&days={$days}&limit={$limit}&hideminor=1" ); } if ( $hideminor ) { - $cmq = "AND cur_minor_edit=0"; - } else { $cmq = ""; } + $cmq = 'AND cur_minor_edit=0'; + } else { $cmq = ''; } extract( $dbr->tableNames( 'cur', 'links' ) ); @@ -79,7 +80,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { "target=" . $nt->getPrefixedURL() . "&hideminor={$hideminor}", false, $mlink ); - $wgOut->addHTML( "{$note}\n" ); + $wgOut->addHTML( $note."\n" ); $s = $sk->beginRecentChangesList(); $count = $dbr->numRows( $res );