r53475 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53474‎ | r53475 | r53476 >
Date:14:36, 19 July 2009
Author:siebrand
Status:ok
Tags:
Comment:
Use $wgLang->pipeList() instead of separating with "/"
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -181,7 +181,7 @@
182182 * Show some useful links in the subtitle
183183 */
184184 protected function showConvenienceLinks() {
185 - global $wgOut, $wgUser;
 185+ global $wgOut, $wgUser, $wgLang;
186186 # Give a link to the logs/hist for this page
187187 if( $this->targetObj ) {
188188 $links = array();
@@ -210,7 +210,7 @@
211211 );
212212 }
213213 # Logs themselves don't have histories or archived revisions
214 - $wgOut->setSubtitle( '<p>'.implode($links,' / ').'</p>' );
 214+ $wgOut->setSubtitle( '<p>' . $wgLang->pipeList( $links ) . '</p>' );
215215 }
216216 }
217217

Status & tagging log