aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-04 14:25:46 +0000
committerMario <mario@mariovavti.com>2023-01-04 14:25:46 +0000
commite16ea1ae0568238fa4c2236d1f050ef4a85749c7 (patch)
tree950f23a52ad95d46b2f4cb46d821850b5c347740 /boot.php
parent941135a0a63d72d6300ab93a608cd5c8354d9e0a (diff)
downloadvolse-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.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index b02dad9d6..dd3861196 100644
--- a/boot.php
+++ b/boot.php
@@ -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'];