summaryrefslogtreecommitdiffstats
path: root/code/pages.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/pages.inc.php')
-rw-r--r--code/pages.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php
index 129167a..a6d9085 100644
--- a/code/pages.inc.php
+++ b/code/pages.inc.php
@@ -9,6 +9,7 @@
var $pages = array(
'Login.c' => null,
'Logout.c' => null,
+ 'Modules.c' => null,
'Pages.c' => null,
'Pages:Copy.c' => null,
'Pages:Delete.c' => null,
@@ -115,7 +116,8 @@
}
else {
$filename = $GLOBALS['modules']->pages[$page . '.' . $type];
- if(!$filename) $filename = 'pages/' . strtr($page, array(':' => '/')) . '.' . $type . '.xml';
+ if(!$filename) $filename = 'pages/' . strtr($type, array('c' => 'content', 'e' => 'editor', 'n' => 'nav'))
+ . '/' . $page . '.xml';
$xmldata = $GLOBALS['xmlparser']->ParseFile($filename);
if(!$xmldata) return null;