svn: /web/php/trunk/ results.php

From: Date: Wed, 13 Jul 2011 20:47:53 +0000
Subject: svn: /web/php/trunk/ results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11615@lists.php.net to get a copy of this message
rasmus Wed, 13 Jul 2011 20:47:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313215 Log: Prepare frontend for switch to Bing backend Changed paths: U web/php/trunk/results.php Modified: web/php/trunk/results.php =================================================================== --- web/php/trunk/results.php 2011-07-13 20:12:14 UTC (rev 313214) +++ web/php/trunk/results.php 2011-07-13 20:47:53 UTC (rev 313215) @@ -100,15 +100,9 @@ $cnt = $pos + $i; $d = date('j M Y', $hit['ModificationDate']); - $cachelink = $size = ''; + $cachelink = ''; if (isset($hit['Cache'])) { - $cachelink = " - <a href=\"{$hit['Cache']['Url']}\">Cached</a>"; - if ($hit['Cache']['Size'] > 1024) { - $size = ' - ' . sprintf("%d", $hit['Cache']['Size']/1024) . 'k'; - } - else { - $size = " - {$hit['Cache']['Size']} bytes"; - } + $cachelink = " - <a href=\"{$hit['Cache']}\">Cached</a>"; } // rewrite mirrors urls (\w\w\d? or www, but not qa, doc, gtk and ~/user) @@ -131,7 +125,7 @@ <li> <p class="result">{$types[$type]}<a href="{$real_url}">{$display_title}</a></p> <p class="summary">{$summary}</p> - <p class="meta">{$displayurl} - {$d}{$size}{$cachelink}</p> + <p class="meta">{$displayurl} - {$d} {$cachelink}</p> </li> EOB; }

« previous php.webmaster (#11615) next »