Capitalization fix in memcached setting
[lhc/web/wiklou.git] / includes / PageHistory.php
index 2c3d445..0f42b6f 100644 (file)
@@ -1,9 +1,15 @@
 <?php
-
-/* Page history
-   Split off from Article.php and Skin.php, 2003-12-22
-*/
-
+/**
+ * Page history
+ * 
+ * Split off from Article.php and Skin.php, 2003-12-22
+ * @package MediaWiki
+ */
+
+/**
+ * @todo document
+ * @package MediaWiki
+ */
 class PageHistory {
        var $mArticle, $mTitle, $mSkin;
        var $lastline, $lastdate;
@@ -15,8 +21,7 @@ class PageHistory {
 
        # This shares a lot of issues (and code) with Recent Changes
 
-       function history()
-       {
+       function history() {
                global $wgUser, $wgOut, $wgLang;
 
                # If page hasn't changed, client can cache this
@@ -116,21 +121,19 @@ class PageHistory {
                wfProfileOut( $fname );
        }
 
-       function beginHistoryList()
-       {
+       function beginHistoryList() {
                global $wgTitle;
                $this->lastdate = $this->lastline = '';
                $s = '<p>' . wfMsg( 'histlegend' ) . '</p>';
                $s .= '<form action="' . $wgTitle->escapeLocalURL( '-' ) . '" method="get">';
                $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey());
-               $s .= "<input type='hidden' name='title' value='{$prefixedkey}' />\n";
+               $s .= "<input type='hidden' name='title' value=\"{$prefixedkey}\" />\n";
                $s .= !empty($this->submitbuttonhtml1) ? $this->submitbuttonhtml1."\n":'';
                $s .= '<ul id="pagehistory">';
                return $s;
        }
 
-       function endHistoryList( $skip = false )
-       {
+       function endHistoryList( $skip = false ) {
                $last = wfMsg( 'last' );
 
                $s = $skip ? '' : preg_replace( "/!OLDID![0-9]+!/", $last, $this->lastline );
@@ -140,9 +143,8 @@ class PageHistory {
                return $s;
        }
 
-       function historyLine( $ts, $u, $ut, $ns, $ttl, $oid, $c, $isminor, $counter = '' )
-       {
-               global $wgLang;
+       function historyLine( $ts, $u, $ut, $ns, $ttl, $oid, $c, $isminor, $counter = '' ) {
+               global $wgLang, $wgContLang;
 
                $artname = Title::makeName( $ns, $ttl );
                $last = wfMsg( 'last' );
@@ -165,10 +167,10 @@ class PageHistory {
                $link = $this->mSkin->makeKnownLink( $artname, $dt, $q );
 
                if ( 0 == $u ) {
-                       $ul = $this->mSkin->makeKnownLink( $wgLang->specialPage( 'Contributions' ),
+                       $ul = $this->mSkin->makeKnownLink( $wgContLang->specialPage( 'Contributions' ),
                                htmlspecialchars( $ut ), 'target=' . urlencode( $ut ) );
                } else {
-                       $ul = $this->mSkin->makeLink( $wgLang->getNsText(
+                       $ul = $this->mSkin->makeLink( $wgContLang->getNsText(
                                Namespace::getUser() ) . ':'.$ut , htmlspecialchars( $ut ) );
                }