Use wfMsgForContent() when needed so that IRC notifications are always in content...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Jan 2009 18:45:42 +0000 (18:45 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Jan 2009 18:45:42 +0000 (18:45 +0000)
includes/LogPage.php

index a6afbd7..bd3c974 100644 (file)
@@ -213,11 +213,19 @@ class LogPage {
                                        } else if ( $type == 'protect' && count($params) == 3 ) {
                                                $details .= " {$params[1]}"; // restrictions and expiries
                                                if( $params[2] ) {
-                                                       $details .= ' ['.wfMsg('protect-summary-cascade').']';
+                                                       if ( $skin ) {
+                                                               $details .= ' ['.wfMsg('protect-summary-cascade').']';
+                                                       } else {
+                                                               $details .= ' ['.wfMsgForContent('protect-summary-cascade').']';
+                                                       }
                                                }
                                        } else if ( $type == 'move' && count( $params ) == 3 ) {
                                                if( $params[2] ) {
-                                                       $details .= ' [' . wfMsg( 'move-redirect-suppressed' ) . ']';
+                                                       if ( $skin ) {
+                                                               $details .= ' [' . wfMsg( 'move-redirect-suppressed' ) . ']';
+                                                       } else {
+                                                               $details .= ' [' . wfMsgForContent( 'move-redirect-suppressed' ) . ']';
+                                                       }
                                                }
                                        }
                                        $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin ) . $details;