X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLogEventsList.php;h=820793a9ef8aa9643d7ec5ce13da277288034f8f;hb=9cb3299aee7acc5ba824427146e9f4c77e325ede;hp=62c3184ec505608c75daa527c474a731960c1246;hpb=a2589ff8c6718dc170db8eb6c08ce656d38df46b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 62c3184ec5..820793a9ef 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -95,8 +95,7 @@ class LogEventsList { $tagSelector = ChangeTags::buildTagFilterSelector( $tagFilter ); - $html = ''; - $html .= Xml::hidden( 'title', $special ); + $html = Html::hidden( 'title', $special ); // Basic selectors $html .= $this->getTypeMenu( $types ) . "\n"; @@ -163,7 +162,7 @@ class LogEventsList { ); $links[$type] = wfMsgHtml( "log-show-hide-{$type}", $link ); - $hiddens .= Xml::hidden( "hide_{$type}_log", $val ) . "\n"; + $hiddens .= Html::hidden( "hide_{$type}_log", $val ) . "\n"; } // Build links return ''.$wgLang->pipeList( $links ) . '' . $hiddens; @@ -321,7 +320,6 @@ class LogEventsList { } private function logUserLinks( $row ) { - $userLinks = ''; if( self::isDeleted( $row, LogPage::DELETED_USER ) ) { $userLinks = '' . wfMsgHtml( 'rev-deleted-user' ) . ''; @@ -337,7 +335,6 @@ class LogEventsList { } private function logAction( $row, $title, $paramArray ) { - $action = ''; if( self::isDeleted( $row, LogPage::DELETED_ACTION ) ) { $action = '' . wfMsgHtml( 'rev-deleted-event' ) . ''; @@ -350,7 +347,6 @@ class LogEventsList { private function logComment( $row ) { global $wgContLang; - $comment = ''; if( self::isDeleted( $row, LogPage::DELETED_COMMENT ) ) { $comment = '' . wfMsgHtml( 'rev-deleted-comment' ) . ''; @@ -464,7 +460,6 @@ class LogEventsList { if( count($paramArray) >= 1 ) { $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); // $paramArray[1] is a CSV of the IDs - $Ids = explode( ',', $paramArray[0] ); $query = $paramArray[0]; // Link to each hidden object ID, $paramArray[1] is the url param $revert = '(' . $this->skin->link( @@ -582,7 +577,7 @@ class LogEventsList { public static function userCanBitfield( $bitfield, $field ) { if( $bitfield & $field ) { global $wgUser; - $permission = ''; + if ( $bitfield & LogPage::DELETED_RESTRICTED ) { $permission = 'suppressrevision'; } else {