mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
ability for addons to create .pdl files and load them automatically
This commit is contained in:
parent
d908f53607
commit
8e9d076216
1 changed files with 2 additions and 0 deletions
2
boot.php
2
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;
|
||||
|
|
Loading…
Reference in a new issue