From fbe110486aac33a44d27634e9877495895fb8ae7 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 5 Nov 2004 20:51:15 +0000 Subject: [PATCH] single quotes --- includes/SpecialNewimages.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index 8f85817cd2..91865509ab 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -20,24 +20,24 @@ function wfSpecialNewimages() { $sql = "SELECT img_size,img_name,img_user,img_user_text," . "img_description,img_timestamp FROM $image"; - $bydate = wfMsg( "bydate" ); + $bydate = wfMsg( 'bydate' ); if ( !empty( $wpIlMatch ) ) { $nt = Title::newFromUrl( $wpIlMatch ); if($nt ) { $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); - $m = str_replace( "%", "\\%", $m ); - $m = str_replace( "_", "\\_", $m ); + $m = str_replace( '%', "\\%", $m ); + $m = str_replace( '_', "\\_", $m ); $sql .= " WHERE LCASE(img_name) LIKE '%{$m}%'"; } } - $sort = "bydate"; - $sql .= " ORDER BY img_timestamp DESC"; + $sort = 'bydate'; + $sql .= ' ORDER BY img_timestamp DESC'; $st = $bydate; list( $limit, $offset ) = wfCheckLimits( 50 ); if ( 0 == $limit ) { - $lt = wfMsg( "all" ); + $lt = wfMsg( 'all' ); } else { $lt = $wgLang->formatNum( "${limit}" ); $sql .= " LIMIT {$limit}"; @@ -49,9 +49,9 @@ function wfSpecialNewimages() { $wgOut->addHTML( "

{$text}\n

" ); $sk = $wgUser->getSkin(); - $cap = wfMsg( "ilshowmatch" ); - $sub = wfMsg( "ilsubmit" ); - $titleObj = Title::makeTitle( NS_SPECIAL, "Imagelist" ); + $cap = wfMsg( 'ilshowmatch' ); + $sub = wfMsg( 'ilsubmit' ); + $titleObj = Title::makeTitle( NS_SPECIAL, 'Imagelist' ); $action = $titleObj->escapeLocalURL( "sort={$sort}&limit={$limit}" ); $wgOut->addHTML( "
" . "
" ); $nums = array( 50, 100, 250, 500 ); - $here = $wgContLang->specialPage( "Imagelist" ); + $here = $wgContLang->specialPage( 'Imagelist' ); - $fill = ""; + $fill = ''; $first = true; foreach ( $nums as $num ) { - if ( ! $first ) { $fill .= " | "; } + if ( ! $first ) { $fill .= ' | '; } $first = false; $fill .= $sk->makeKnownLink( $here, $wgLang->formatNum( $num ), "sort=bydate&limit={$num}&wpIlMatch=" . urlencode( $wpIlMatch ) ); } - $text = wfMsg( "showlast", $fill, $bydate ); - $wgOut->addHTML( "{$text}

\n" ); + $text = wfMsg( 'showlast', $fill, $bydate ); + $wgOut->addHTML( $text."

\n" ); $i=0; - $res = $dbr->query( $sql, "wfSpecialImagelist" ); + $res = $dbr->query( $sql, 'wfSpecialImagelist' ); $gallery = new ImageGallery(); -- 2.20.1