summaryrefslogtreecommitdiff
path: root/includes/controller/angeltypes_controller.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-05-13 11:20:48 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-05-13 11:20:48 +0200
commita33fc5e21d55326fcff69c48a53f6a661a7cbf04 (patch)
tree7268abaea40461294b16b6936ad25d9f424aa379 /includes/controller/angeltypes_controller.php
parent3401c6f8b6e85a94714cce775323652c59993ece (diff)
router simplification
Diffstat (limited to 'includes/controller/angeltypes_controller.php')
-rw-r--r--includes/controller/angeltypes_controller.php21
1 files changed, 6 insertions, 15 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php
index 474540d6..bcd7696e 100644
--- a/includes/controller/angeltypes_controller.php
+++ b/includes/controller/angeltypes_controller.php
@@ -13,29 +13,20 @@ function angeltypes_title() {
function angeltypes_controller() {
if (! isset($_REQUEST['action']))
$_REQUEST['action'] = 'list';
+
switch ($_REQUEST['action']) {
default:
case 'list':
- list($title, $content) = angeltypes_list_controller();
- break;
+ return angeltypes_list_controller();
case 'view':
- list($title, $content) = angeltype_controller();
- break;
+ return angeltype_controller();
case 'edit':
- list($title, $content) = angeltype_edit_controller();
- break;
+ return angeltype_edit_controller();
case 'delete':
- list($title, $content) = angeltype_delete_controller();
- break;
+ return angeltype_delete_controller();
case 'about':
- list($title, $content) = angeltypes_about_controller();
- break;
+ return angeltypes_about_controller();
}
-
- return array(
- $title,
- $content
- );
}
/**