From: <var...@us...> - 2009-06-09 08:30:42
|
Revision: 6907 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6907&view=rev Author: vargenau Date: 2009-06-09 08:30:38 +0000 (Tue, 09 Jun 2009) Log Message: ----------- Do not display dots if string is at beginning Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2009-06-07 07:11:43 UTC (rev 6906) +++ trunk/lib/PageList.php 2009-06-09 08:30:38 UTC (rev 6907) @@ -422,7 +422,7 @@ $j = max(0, $i - ($this->bytes / 2)); return HTML::div(array('style' => 'font-size:x-small'), HTML::div(array('class' => 'transclusion'), - HTML::span("...".substr($c, $j, ($this->bytes / 2))), + HTML::span(($j ? '...' : '').substr($c, $j, ($j ? $this->bytes / 2 : $i))), HTML::span(array("style"=>"background:yellow"),substr($c, $i, $l)), HTML::span(substr($c, $i+$l, ($this->bytes / 2))."..."." ".($score ? sprintf("[%0.1f]",$score):"")))); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |