Adding direction marks between the edit comments and the page name in the contributio...
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 8 Aug 2007 18:37:30 +0000 (18:37 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 8 Aug 2007 18:37:30 +0000 (18:37 +0000)
RELEASE-NOTES
includes/SpecialContributions.php
includes/SpecialLog.php

index 3bf9aed..8b1861b 100644 (file)
@@ -366,6 +366,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   sort keys to work on Safari
 * (bug 4530) Fix local name of Kurdish language
 * (bug 10830) Fix local name Haitian Creole language
+* Fix comments in contributions and log pages for RTL languages
 
 == API changes since 1.10 ==
 
index d245144..cd07cbc 100644 (file)
@@ -143,7 +143,7 @@ class ContribsPager extends IndexPager {
        function formatRow( $row ) {
                wfProfileIn( __METHOD__ );
 
-               global $wgLang, $wgUser;
+               global $wgLang, $wgUser, $wgContLang;
 
                $sk = $this->getSkin();
                $rev = new Revision( $row );
@@ -171,7 +171,7 @@ class ContribsPager extends IndexPager {
                }
                $histlink='('.$sk->makeKnownLinkObj( $page, $this->messages['hist'], 'action=history' ) . ')';
 
-               $comment = $sk->revComment( $rev );
+               $comment = $wgContLang->getDirMark() . $sk->revComment( $rev );
                $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
                
                if( $this->target == 'newbies' ) {
index 6d251b3..f0794eb 100644 (file)
@@ -350,7 +350,7 @@ class LogViewer {
         * @private
         */
        function logLine( $s ) {
-               global $wgLang, $wgUser;;
+               global $wgLang, $wgUser, $wgContLang;
                $skin = $wgUser->getSkin();
                $title = Title::makeTitle( $s->log_namespace, $s->log_title );
                $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $s->log_timestamp), true );
@@ -365,7 +365,7 @@ class LogViewer {
                }
 
                $userLink = $this->skin->userLink( $s->log_user, $s->user_name ) . $this->skin->userToolLinksRedContribs( $s->log_user, $s->user_name );
-               $comment = $this->skin->commentBlock( $s->log_comment );
+               $comment = $wgContLang->getDirMark() . $this->skin->commentBlock( $s->log_comment );
                $paramArray = LogPage::extractParams( $s->log_params );
                $revert = '';
                // show revertmove link