From e07205730437668932adf3eddd06c8a3b9709f3d Mon Sep 17 00:00:00 2001
From: "BestNa.me Labs"
Date: Sat, 5 Mar 2016 18:42:11 +0100
Subject: [PATCH] Fixing markup and comment
Minor fixes in yourls-infos.php:
1. Removes an unclosed and superfluous tag in the line reading e.g. '43 hits on January 1, 1970'. This caused wrong HTML and therefore most browsers rendered *all* dates in the list appearing on click of 'Click for more details' with bold font-weight (i.e., not only those of the best year / month / day as intended).
2. Took the liberty of also changing a closing comment token from '/**/' to the more common '**/' (in the comment titled 'I can haz debug data'). While this was perfectly valid code, it confused the syntax highlighter of github (all past the '/**/' appeared in a frightening red).
---
yourls-infos.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yourls-infos.php b/yourls-infos.php
index 8e51815..e80860e 100644
--- a/yourls-infos.php
+++ b/yourls-infos.php
@@ -198,7 +198,7 @@
echo "last_24h: "; print_r( $last_24h );
echo "countries: "; print_r( $countries );
die();
- /**/
+ **/
}
@@ -378,7 +378,7 @@
$best_time['month'] = date( "m", strtotime( $best['day'] ) );
$best_time['year'] = date( "Y", strtotime( $best['day'] ) );
?>
- %1$s hit on %2$s', '%1$s hits on %2$s', $best['max'] ), $best['max'], yourls_date_i18n( "F j, Y", strtotime( $best['day'] ) ) ); ?>.
+
%1$s
hit on %2$s', '%1$s hits on %2$s', $best['max'] ), $best['max'], yourls_date_i18n( "F j, Y", strtotime( $best['day'] ) ) ); ?>.