* some comments (using # instead of /* */ )
[lhc/web/wiklou.git] / includes / PageHistory.php
index 13c1b44..3aa6ae2 100644 (file)
@@ -64,7 +64,7 @@ class PageHistory {
                  "FROM $oldtable $use_index " .
                  "WHERE old_namespace={$namespace} AND " .
                  "old_title='" . $db->strencode( $this->mTitle->getDBkey() ) . "' " .
-                 "ORDER BY inverse_timestamp".wfLimitResult($limitplus,$rawoffset);
+                 "ORDER BY inverse_timestamp".$db->limitResult($limitplus,$rawoffset);
                $res = $db->query( $sql, $fname );
 
                $revs = $db->numRows( $res );
@@ -122,7 +122,7 @@ class PageHistory {
                $this->lastdate = $this->lastline = "";
                $s = "\n<p>" . wfMsg( "histlegend" ).'</p>'; 
                $s .="\n<form action=\"" . $wgTitle->escapeLocalURL( '-' ) . "\" method=\"get\">";
-               $s .= "<input type=\"hidden\" name=\"title\" value=\"".wfEscapeHTML($wgTitle->getPrefixedDbKey())."\"/>\n";
+               $s .= "<input type=\"hidden\" name=\"title\" value=\"".htmlspecialchars($wgTitle->getPrefixedDbKey())."\"/>\n";
                $s .= !empty($this->submitbuttonhtml1) ? $this->submitbuttonhtml1."\n":'';
                $s .= "" . "\n<ul id=\"pagehistory\" >";
                return $s;