Commit 79be0313 authored by Seblu's avatar Seblu

use php constant to set default year in video page.

parent 323dcc6e
......@@ -3,9 +3,11 @@
#require_once('lib/magpierss/rss_fetch.inc');
#define('MAGPIE_CACHE_DIR', 'tmp/magpie_cache');
define('DEFAULT_YEAR', '2010');
function dispVideos() {
(isset($_GET['year_page'])) ? ($curyear = " ".$_GET['year_page']) : ($curyear = " 2009");
(isset($_GET['year_page'])) ? ($curyear = " ".$_GET['year_page']) : ($curyear = " ".DEFAULT_YEAR);
$str = '
<!-- main body -->
......@@ -72,15 +74,16 @@ function dispVideosMenu(){
function dispVideosYear(){
if ($_GET['year_page']) {
$year_page = $_GET['year_page'];
}
else
{
$year_page = 2009;
$year_page = DEFAULT_YEAR;
}
$str = '';//'<B>'.$year_page.'</B>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment