r36464 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36463‎ | r36464 | r36465 >
Date:15:45, 19 June 2008
Author:minuteelectron
Status:old
Tags:
Comment:
* Add a newline before outputting template name as a link or template name raw
to ensure that they are printed on multiple lines in Opera 9.5 as much as
possible, since hyphens and underscores no longer wrap in Opera 9.5.
Modified paths:
  • /trunk/extensions/Babel/Babel.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/Babel.class.php
@@ -162,13 +162,13 @@
163163 } elseif( $this->_validTitle( $name ) ) {
164164
165165 /* Non-existant page and invalid parameter syntax, red link */
166 - $contents .= "[[Template:{$this->_addFixes( $name,'template' )}]]";
 166+ $contents .= "\n[[Template:{$this->_addFixes( $name,'template' )}]]";
167167
168168 } else {
169169
170170 /* Invalid title, output raw.
171171 */
172 - $contents .= "Template:{$this->_addFixes( $name,'template' )}";
 172+ $contents .= "\nTemplate:{$this->_addFixes( $name,'template' )}";
173173
174174 }
175175

Status & tagging log