aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-08-09 11:07:38 +0200
committerMario Vavti <mario@mariovavti.com>2018-08-09 11:07:38 +0200
commit5c5a808290b5e7b0ede1ad3f2a1574c6d7f76dc3 (patch)
treecf799e20dd003007939e7702700ed564bc86e5e2 /boot.php
parent5c30b2f27133d4fe20e509f095951e1fb36e77ba (diff)
parent1d13cc1601eb6e4a127d975465fda32d92c402a1 (diff)
downloadvolse-hubzilla-5c5a808290b5e7b0ede1ad3f2a1574c6d7f76dc3.tar.gz
volse-hubzilla-5c5a808290b5e7b0ede1ad3f2a1574c6d7f76dc3.tar.bz2
volse-hubzilla-5c5a808290b5e7b0ede1ad3f2a1574c6d7f76dc3.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 17fe7e54e..fca184555 100755
--- a/boot.php
+++ b/boot.php
@@ -54,7 +54,7 @@ define ( 'STD_VERSION', '3.7.1' );
define ( 'ZOT_REVISION', '6.0a' );
-define ( 'DB_UPDATE_VERSION', 1216 );
+define ( 'DB_UPDATE_VERSION', 1217 );
define ( 'PROJECT_BASE', __DIR__ );
@@ -2072,8 +2072,8 @@ function load_pdl() {
if (! count(App::$layout)) {
$arr = [
- 'module' => App::$module,
- 'layout' => ''
+ 'module' => App::$module,
+ 'layout' => ''
];
/**
* @hooks load_pdl
@@ -2093,6 +2093,16 @@ function load_pdl() {
if((! $s) && (($p = theme_include($n)) != ''))
$s = @file_get_contents($p);
+ elseif(file_exists('addon/'. App::$module . '/' . $n))
+ $s = @file_get_contents('addon/'. App::$module . '/' . $n);
+
+ $arr = [
+ 'module' => App::$module,
+ 'layout' => $s
+ ];
+ call_hooks('alter_pdl',$arr);
+ $s = $arr['layout'];
+
if($s) {
App::$comanche->parse($s);
App::$pdl = $s;