Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -239,7 +239,8 @@ |
240 | 240 | } |
241 | 241 | |
242 | 242 | public function insertLog( &$s, $title, $logtype ) { |
243 | | - $logname = LogType::factory( $logtype )->getName()->escaped(); |
| 243 | + $page = new LogPage( $logtype ); |
| 244 | + $logname = $page->getName()->escaped(); |
244 | 245 | $s .= '(' . Linker::linkKnown( $title, $logname ) . ')'; |
245 | 246 | } |
246 | 247 | |
— | — | @@ -361,6 +362,7 @@ |
362 | 363 | */ |
363 | 364 | public function insertLogEntry( $rc ) { |
364 | 365 | $formatter = LogFormatter::newFromRow( $rc->mAttribs ); |
| 366 | + $formatter->setShowUserToolLinks( true ); |
365 | 367 | $mark = $this->getLang()->getDirMark(); |
366 | 368 | return $formatter->getActionText() . " $mark" . $formatter->getComment(); |
367 | 369 | } |
Index: trunk/extensions/CleanChanges/CleanChanges_body.php |
— | — | @@ -108,11 +108,6 @@ |
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
112 | | - protected function getLogAction( $rc ) { |
113 | | - $formatter = LogFormatter::newFromRow( $rc->mAttribs ); |
114 | | - return $formatter->getActionText(); |
115 | | - } |
116 | | - |
117 | 112 | /** |
118 | 113 | * Format a line for enhanced recentchange (aka with javascript and block of lines). |
119 | 114 | */ |
— | — | @@ -345,7 +340,7 @@ |
346 | 341 | $items[] = $this->userSeparator; |
347 | 342 | |
348 | 343 | if ( $this->isLog( $rcObj ) ) { |
349 | | - $items[] = $this->getLogAction( $rcObj ); |
| 344 | + $items[] = $this->insertLogEntry( $rcObj ); |
350 | 345 | } else { |
351 | 346 | $items[] = $rcObj->_user; |
352 | 347 | $items[] = $rcObj->_userInfo; |
— | — | @@ -387,7 +382,7 @@ |
388 | 383 | $items[] = $this->userSeparator; |
389 | 384 | |
390 | 385 | if ( $this->isLog( $rcObj ) ) { |
391 | | - $items[] = $this->getLogAction( $rcObj ); |
| 386 | + $items[] = $this->insertLogEntry( $rcObj ); |
392 | 387 | } else { |
393 | 388 | $items[] = $rcObj->_user; |
394 | 389 | $items[] = $rcObj->_userInfo; |