r21780 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21779‎ | r21780 | r21781 >
Date:23:09, 1 May 2007
Author:daniel
Status:old
Tags:
Comment:
nicer 'read on' link
Modified paths:
  • /trunk/extensions/News/NewsRenderer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/News/NewsRenderer.php
@@ -665,10 +665,10 @@
666666
667667 if ( strlen($text) < NEWS_HEAD_LENGTH ) return $text;
668668
669 - $suffix = "\n" . '... ([[' . $title->getPrefixedText() . ']]...)';
 669+ $suffix = ' &#091;...[[' . $title->getPrefixedText() . ']]...&#093;';
670670
671671 $t = preg_replace('/^(.*?)<!--\s*summary\s+end\s*-->.*$/si', '\1', $text);
672 - if ($t != $text) return trim($t);
 672+ if ($t != $text) return trim($t) . $suffix;
673673
674674 if ( $t = NewsRenderer::cutHead($text, array("\r", "\n"), $suffix) ) return $t;
675675 if ( $t = NewsRenderer::cutHead($text, array("."), $suffix) ) return $t;