diff options
author | Mario <mario@mariovavti.com> | 2023-01-04 14:25:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-01-04 14:25:46 +0000 |
commit | e16ea1ae0568238fa4c2236d1f050ef4a85749c7 (patch) | |
tree | 950f23a52ad95d46b2f4cb46d821850b5c347740 /boot.php | |
parent | 941135a0a63d72d6300ab93a608cd5c8354d9e0a (diff) | |
download | volse-hubzilla-e16ea1ae0568238fa4c2236d1f050ef4a85749c7.tar.gz volse-hubzilla-e16ea1ae0568238fa4c2236d1f050ef4a85749c7.tar.bz2 volse-hubzilla-e16ea1ae0568238fa4c2236d1f050ef4a85749c7.zip |
pdl editor for addon iitial commit
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2268,6 +2268,7 @@ function load_pdl() { 'module' => App::$module, 'layout' => '' ]; + /** * @hooks load_pdl * Called when we load a PDL file or description. @@ -2281,20 +2282,26 @@ function load_pdl() { $u = App::$comanche->get_channel_id(); $s = ''; - if ($u) + if ($u) { $s = get_pconfig($u, 'system', $n); - if (!$s) + } + + if (!$s) { $s = $layout; + } - if ((!$s) && (($p = theme_include($n)) != '')) + if ((!$s) && (($p = theme_include($n)) != '')) { $s = @file_get_contents($p); - elseif (file_exists('addon/' . App::$module . '/' . $n)) + } + elseif ((!$s) && 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']; |