replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1)
[lhc/web/wiklou.git] / includes / PageHistory.php
index 3482d07..ddfe444 100644 (file)
@@ -50,7 +50,7 @@ class PageHistory {
         * @returns nothing
         */
        function history() {
-               global $wgUser, $wgOut, $wgRequest, $wgTitle;
+               global $wgOut, $wgRequest, $wgTitle;
 
                /*
                 * Allow client caching.
@@ -177,7 +177,7 @@ class PageHistory {
                $s = wfMsgWikiHtml( 'histlegend' );
                $s .= '<form action="' . $wgTitle->escapeLocalURL( '-' ) . '" method="get">';
                $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey());
-               
+
                // The following line is SUPPOSED to have double-quotes around the
                // $prefixedkey variable, because htmlspecialchars() doesn't escape
                // single-quotes.
@@ -190,7 +190,7 @@ class PageHistory {
                // consideration and cooperation.
                //
                $s .= "<input type='hidden' name='title' value=\"{$prefixedkey}\" />\n";
-               
+
                $s .= $this->submitButton();
                $s .= '<ul id="pagehistory">' . "\n";
                return $s;
@@ -429,7 +429,6 @@ class PageHistory {
 
        /** @todo document */
        function fetchRevisions($limit, $offset, $direction) {
-               global $wgUser, $wgShowUpdatedMarker;
                $fname = 'PageHistory::fetchRevisions';
 
                $dbr =& wfGetDB( DB_SLAVE );
@@ -490,7 +489,7 @@ class PageHistory {
 
        /** @todo document */
        function makeNavbar($revisions, $offset, $limit, $direction) {
-               global $wgTitle, $wgLang;
+               global $wgLang;
 
                $revisions = array_slice($revisions, 0, $limit);