summaryrefslogtreecommitdiffstats
path: root/core/modules.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules.inc.php')
-rw-r--r--core/modules.inc.php10
1 files changed, 3 insertions, 7 deletions
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) {