ability for addons to create .pdl files and load them automatically

This commit is contained in:
zotlabs 2018-08-04 13:50:49 -07:00
parent d908f53607
commit 8e9d076216

View file

@ -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;