issue with plugin loadable layouts

This commit is contained in:
redmatrix
2016-01-14 20:51:59 -08:00
parent 6ff192c4ea
commit f888548e0e
3 changed files with 20 additions and 4 deletions

View File

@@ -2004,12 +2004,14 @@ function load_pdl(&$a) {
$arr = array('module' => $a->module, 'layout' => '');
call_hooks('load_pdl',$arr);
$s = $arr['layout'];
$layout = $arr['layout'];
$n = 'mod_' . $a->module . '.pdl' ;
$u = comanche_get_channel_id();
if($u)
$s = get_pconfig($u, 'system', $n);
if(! $s)
$s = $layout;
if((! $s) && (($p = theme_include($n)) != ''))
$s = @file_get_contents($p);