From 6578577ba229408c75fb4e5f13f87ca9133aaace Mon Sep 17 00:00:00 2001 From: "BestNa.me Labs" Date: Fri, 4 Mar 2016 22:01:56 +0100 Subject: [PATCH] Fix f. missing chart bar add (+all) icon Fixes the following bug: When allowing for multiple short URLs for a same long URL (bitly behavior [behaviour]), the chart bar adding symbol linking to YOURLS_SITE/keyword+all does not show up on infos pages. --- yourls-infos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yourls-infos.php b/yourls-infos.php index 81d2628..bea70e8 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -49,9 +49,10 @@ $list_of_years = array(); $last_24h = array(); + if( yourls_allow_duplicate_longurls() ) + $keyword_list = yourls_get_longurl_keywords( $longurl ); // Define keyword query range : either a single keyword or a list of keywords if( $aggregate ) { - $keyword_list = yourls_get_longurl_keywords( $longurl ); $keyword_range = "IN ( '" . join( "', '", $keyword_list ) . "' )"; // IN ( 'blah', 'bleh', 'bloh' ) } else { $keyword_range = sprintf( "= '%s'", yourls_escape( $keyword ) ); -- 2.45.0