From 8e9d076216a364beecf57574134fb36c12be6e6f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 4 Aug 2018 13:50:49 -0700 Subject: ability for addons to create .pdl files and load them automatically --- boot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot.php b/boot.php index 6f34717b8..316e86758 100755 --- a/boot.php +++ b/boot.php @@ -2093,6 +2093,8 @@ 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); if($s) { App::$comanche->parse($s); App::$pdl = $s; -- cgit v1.2.3