From 4c8ff7c5787f6d35cca76e3fda0e9e4d051fe4eb Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 28 Jan 2010 14:22:42 +0000 Subject: Make use of the new module parameter system. --- utils/modules/events.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'utils/modules/events.php') diff --git a/utils/modules/events.php b/utils/modules/events.php index 9fdf0b8..63fb080 100644 --- a/utils/modules/events.php +++ b/utils/modules/events.php @@ -1,10 +1,11 @@ $value) { switch($param) { - case "coming": - return $this->showcoming(-1); - break; - - case "all": - return $this->showall(-1); - break; - - case "old": - default: - return $this->showold(-1); - break; + case "show": + switch($value) { + case "coming": + return $this->showcoming(-1); + break; + + case "old": + return $this->showold(-1); + break; + + case "all": + default: + return $this->showall(-1); + } + + default: + return $this->showall(-1); } } } -- cgit v1.2.3