From 088c7a4709f6583d9b6032d479ef35b507bc6b11 Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 28 Apr 2011 21:29:13 +0000 Subject: [PATCH] Incorrect variable used. Fixes issue 790. git-svn-id: http://yourls.googlecode.com/svn/trunk@620 12232710-3e20-11de-b438-597f59cd7555 --- yourls-infos.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yourls-infos.php b/yourls-infos.php index 032c561..11fda13 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -270,7 +270,7 @@ $title ) { + foreach( $graphs as $graph => $graphtitle ) { if( ${'do_'.$graph} == true ) { $display = ( ${'display_'.$graph} === true ? 'display:block' : 'display:none' ); echo "
"; @@ -289,7 +289,7 @@ $labels_1[] = end( explode( '-', $k ) ); // 'hh' } - echo "

Number of hits : $title

"; + echo "

Number of hits : $graphtitle

"; yourls_stats_line( $last_24h, $labels_1, $labels_2 ); break; @@ -308,7 +308,7 @@ $last_label = preg_replace( '/\d\d\d\d-(\d\d)-(\d\d)/', '$2/$1', $last_key ); $labels_2 = array( $first_label, $last_label); - echo "

Number of hits : $title

"; + echo "

Number of hits : $graphtitle

"; yourls_stats_line( $slice, $labels_1, $labels_2 ); unset( $slice ); break; @@ -325,7 +325,7 @@ $labels_1[$k] = preg_replace( '/\d\d-(\d\d)/', '$1', $v ); } - echo "

Number of hits : $title

"; + echo "

Number of hits : $graphtitle

"; $labels_1 = yourls_array_granularity( $labels_1, 30, false ); $labels_2 = yourls_array_granularity( $list_of_years, 30, false ); yourls_stats_line( $list_of_days, $labels_1, $labels_2 ); @@ -350,11 +350,11 @@
    $title ) { + foreach( $graphs as $graph => $graphtitle ) { if ( ${'do_'.$graph} ) { - $link = "$title"; + $link = "$graphtitle"; } else { - $link = $title; + $link = $graphtitle; } $stat = ''; if( ${'do_'.$graph} ) { -- 2.45.0