From: Arne Heizmann Date: Sat, 28 Aug 2004 18:54:23 +0000 (+0000) Subject: fix typo X-Git-Tag: 1.5.0alpha1~2210 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=d0678c8e1c0bc668210c6e1c239ef6b5b85b60a7;p=lhc%2Fweb%2Fwiklou.git fix typo --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 73495aead6..2c3d445596 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -12,7 +12,7 @@ class PageHistory { $this->mArticle =& $article; $this->mTitle =& $article->mTitle; } - + # This shares a lot of issues (and code) with Recent Changes function history() @@ -20,7 +20,7 @@ class PageHistory { global $wgUser, $wgOut, $wgLang; # If page hasn't changed, client can cache this - + if( $wgOut->checkLastModified( $this->mArticle->getTimestamp() ) ){ # Client cache fresh and headers sent, nothing more to do. return; @@ -39,9 +39,9 @@ class PageHistory { wfProfileOut( $fname ); return; } - + list( $limit, $offset ) = wfCheckLimits(); - + /* We have to draw the latest revision from 'cur' */ $rawlimit = $limit; $rawoffset = $offset - 1; @@ -51,10 +51,10 @@ class PageHistory { } /* Check one extra row to see whether we need to show 'next' and diff links */ $limitplus = $rawlimit + 1; - + $namespace = $this->mTitle->getNamespace(); $title = $this->mTitle->getText(); - + $db =& wfGetDB( DB_SLAVE ); $use_index = $db->useIndexClause( 'name_title_timestamp' ); $oldtable = $db->tableName( 'old' ); @@ -68,14 +68,14 @@ class PageHistory { $res = $db->query( $sql, $fname ); $revs = $db->numRows( $res ); - + if( $revs < $limitplus ) // the sql above tries to fetch one extra $this->linesonpage = $revs; else $this->linesonpage = $revs - 1; $atend = ($revs < $limitplus); - + $this->mSkin = $wgUser->getSkin(); $numbar = wfViewPrevNext( $offset, $limit, @@ -92,8 +92,8 @@ class PageHistory { $counter = 1; if( $offset == 0 ){ $this->linesonpage++; - $s .= $this->historyLine( - $this->mArticle->getTimestamp(), + $s .= $this->historyLine( + $this->mArticle->getTimestamp(), $this->mArticle->getUser(), $this->mArticle->getUserText(), $namespace, $title, 0, $this->mArticle->getComment(), @@ -102,7 +102,7 @@ class PageHistory { ); } while ( $line = $db->fetchObject( $res ) ) { - $s .= $this->historyLine( + $s .= $this->historyLine( $line->old_timestamp, $line->old_user, $line->old_user_text, $namespace, $title, $line->old_id, @@ -122,7 +122,7 @@ class PageHistory { $this->lastdate = $this->lastline = ''; $s = '

' . wfMsg( 'histlegend' ) . '

'; $s .= '
'; - $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey()) + $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey()); $s .= "\n"; $s .= !empty($this->submitbuttonhtml1) ? $this->submitbuttonhtml1."\n":''; $s .= '