diff options
author | ozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555> | 2010-11-06 21:55:00 +0300 |
---|---|---|
committer | ozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555> | 2010-11-06 21:55:00 +0300 |
commit | 073837369020369dedd25f26e8d826e691f20d61 (patch) | |
tree | d801a5b8fcbfc6b24785579873ec966434157010 /yourls-infos.php | |
parent | f12ec91e51340ed6d21ff1ed66540088e8ed4e06 (diff) |
* More consistent way of getting favicons, through Google
* Colors tweak in charts
git-svn-id: http://yourls.googlecode.com/svn/trunk@521 12232710-3e20-11de-b438-597f59cd7555
Diffstat (limited to 'yourls-infos.php')
-rw-r--r-- | yourls-infos.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yourls-infos.php b/yourls-infos.php index 1f205fec..a0a8a153 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -194,7 +194,7 @@ yourls_html_menu(); if( count( $keyword_list ) > 1 )
echo ' <a href="'. yourls_link($keyword).'+all" title="Aggregate stats for duplicate short URLs"><img src="' . YOURLS_SITE . '/images/chart_bar_add.png" border="0" /></a>';
} ?></h3>
-<h3 id="longurl">Long URL: <img class="fix_images" src="<?php echo yourls_get_domain( $longurl, true );?>/favicon.ico"/> <?php yourls_html_link( $longurl, yourls_trim_long_string( $longurl ), 'longurl' ); ?></h3>
+<h3 id="longurl">Long URL: <img class="fix_images" src="<?php echo yourls_get_favicon_url( $longurl );?>" /> <?php yourls_html_link( $longurl, yourls_trim_long_string( $longurl ), 'longurl' ); ?></h3>
<div id="tabs">
<div class="wrap_unfloat">
@@ -481,7 +481,8 @@ yourls_html_menu(); $i = 0;
foreach( $referrer_sort as $site => $count ) {
$i++;
- echo "<li class='sites_list'><img src='http://www.google.com/s2/favicons?domain=$site' class='fix_images'/> $site: <strong>$count</strong> <a href='' class='details' id='more_url$i'>(details)</a></li>\n";
+ $favicon = yourls_get_favicon_url( $site );
+ echo "<li class='sites_list'><img src='$favicon' class='fix_images'/> $site: <strong>$count</strong> <a href='' class='details' id='more_url$i'>(details)</a></li>\n";
echo "<ul id='details_url$i' style='display:none'>";
foreach( $referrers[$site] as $url => $count ) {
echo "<li>"; yourls_html_link($url); echo ": <strong>$count</strong></li>\n";
|