[Scummvm-cvs-logs] scummvm-web old-design -> 31e0522c7274cc3389a2abf993cb6c41291baa1e

sev- sev at scummvm.org
Sat Apr 9 15:01:14 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
31e0522c72 WEB: Fix zero index screenshots on the old website


Commit: 31e0522c7274cc3389a2abf993cb6c41291baa1e
    https://github.com/scummvm/scummvm-web/commit/31e0522c7274cc3389a2abf993cb6c41291baa1e
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-04-09T15:00:54+02:00

Commit Message:
WEB: Fix zero index screenshots on the old website

Changed paths:
    index.php
    screenshots.php



diff --git a/index.php b/index.php
index 891e77b..fe9836a 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,7 @@ require($file_root."/include/"."screenshots.php");
 html_header("ScummVM", '<script src="'.$file_root.'/screenshots.js" type="text/javascript"></script>');
 sidebar_start();
 
-$shownews = empty($_GET['shownews']) ? 0 : 1;
+$shownews = isset($_GET['shownews']) ? 1 : 0;
 
 // display welcome table
 // don't show this if we are in news mode
diff --git a/screenshots.php b/screenshots.php
index 3f0088f..945db11 100644
--- a/screenshots.php
+++ b/screenshots.php
@@ -24,11 +24,13 @@ echo html_round_frame_start("Screenshots","");
 
 <?php
 
-$view = empty($_GET['view']) ? "" : $_GET['view'];
-$offset = empty($_GET['offset']) ? 0 : $_GET['offset'];
+$view = isset($_GET['view']) ? $_GET['view'] : -1;
+$offset = isset($_GET['offset']) ? $_GET['offset'] : -1;
+
+print "view: $view\noffset: $offset\n";
 
 // if in single view
-if ($view != "")
+if ($view != -1)
 {
 	if (!is_numeric($view))
 	{






More information about the Scummvm-git-logs mailing list