From 543336aef16562369c01992817f58e17144c9cad Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 14 Dec 2006 00:06:02 +0000 Subject: Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt. --- core/modules.inc.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core') diff --git a/core/modules.inc.php b/core/modules.inc.php index 62a20e9..814727b 100644 --- a/core/modules.inc.php +++ b/core/modules.inc.php @@ -107,10 +107,7 @@ switch($file['tag']) { case 'page': - $type = $file['attribs']['type']; - if(!$type) $type = 'c'; - - array_push($module['pages'], $file['children'][0] . '.' . $type); + array_push($module['pages'], $file['children'][0]); break; case 'code': array_push($module['code'], $file['children'][0]); @@ -127,9 +124,8 @@ return $this->code[$name]['path'] . 'code/' . $name . '.inc.php'; } - function GetPagePath($name, $type) { - return $this->pages[$name . '.' . $type]['path'] . 'pages/' . - strtr($type, array('c' => 'content', 'b' => 'base')) . '/' . $name . '.xml'; + function GetPagePath($name) { + return $this->pages[$name]['path'] . 'pages/' . $name . '.xml'; } function GetTemplatePath($name) { -- cgit v1.2.3