diff --git a/scripts/play.php b/scripts/play.php
index 0ea14f1..2831029 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -399,6 +399,9 @@ if(!isset($_GET['species']) && !isset($_GET['filename'])){
+
@@ -432,6 +435,8 @@ if(!isset($_GET['species']) && !isset($_GET['filename'])){
} else {
$values[] = ' (' . $valuescount . ')';
}
+ } elseif ($_GET['sort'] == "date") {
+ $values[] = ' (' . $results['Date'] . ')';
}
}
diff --git a/scripts/stats.php b/scripts/stats.php
index ace20b8..32371b4 100644
--- a/scripts/stats.php
+++ b/scripts/stats.php
@@ -5,7 +5,7 @@ $_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
ini_set('user_agent', 'PHP_Flickr/1.0');
-error_reporting(0);
+error_reporting(E_ERROR);
ini_set('display_errors', 0);
require_once 'scripts/common.php';
$home = get_home();
@@ -54,6 +54,9 @@ if (get_included_files()[0] === __FILE__) {
+
@@ -80,6 +83,8 @@ if (get_included_files()[0] === __FILE__) {
} else {
$values[] = ' (' . $valuescount . ')';
}
+ } elseif ($_GET['sort'] == "date") {
+ $values[] = ' (' . $results['Date'] . ')';
}
}