aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php4
-rw-r--r--mod/zregister.php1
-rw-r--r--view/php/mod_zregister.php3
3 files changed, 7 insertions, 1 deletions
diff --git a/index.php b/index.php
index 15458e631..84fa1593a 100644
--- a/index.php
+++ b/index.php
@@ -324,6 +324,10 @@ if($a->module != 'install') {
require_once(theme_include('theme_init.php'));
+
+if(($p = theme_include('mod_' . $a->module . '.php')) != '')
+ require_once($p);
+
require_once('include/js_strings.php');
head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css');
diff --git a/mod/zregister.php b/mod/zregister.php
index e8fdafae2..a9a622213 100644
--- a/mod/zregister.php
+++ b/mod/zregister.php
@@ -3,7 +3,6 @@
require_once('include/account.php');
function zregister_init(&$a) {
- $a->page['template'] = 'full';
$result = null;
$cmd = ((argc() > 1) ? argv(1) : '');
diff --git a/view/php/mod_zregister.php b/view/php/mod_zregister.php
new file mode 100644
index 000000000..e7709cbd8
--- /dev/null
+++ b/view/php/mod_zregister.php
@@ -0,0 +1,3 @@
+<?php
+
+$a->page['template'] = 'full';