In case a page has overloaded a module, see if we already have a layout defined. Otherwise, if a pdl file exists for this module, use it.

This commit is contained in:
friendica 2014-02-23 18:40:43 -08:00
parent b78d423a54
commit 2ccff45221
2 changed files with 5 additions and 2 deletions

View File

@ -1804,7 +1804,10 @@ function construct_page(&$a) {
require_once('include/comanche.php');
if(($p = theme_include('mod_' . $a->module . '.pdl')) != '')
// in case a page has overloaded a module, see if we already have a layout defined
// otherwise, if a pdl file exists for this module, use it
if((! count($a->layout)) && ($p = theme_include('mod_' . $a->module . '.pdl')) != '')
comanche_parser($a,@file_get_contents($p));
$comanche = ((count($a->layout)) ? true : false);

View File

@ -1 +1 @@
2014-02-22.596
2014-02-23.597