[Hastymail-cvs] SF.net SVN: hastymail:[838] trunk/hastymail2/lib/misc_functions.php
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2009-04-06 23:54:10
|
Revision: 838 http://hastymail.svn.sourceforge.net/hastymail/?rev=838&view=rev Author: sailfrog Date: 2009-04-06 23:53:42 +0000 (Mon, 06 Apr 2009) Log Message: ----------- fix a bug that caused sub-templates of a non-default theme to not get loaded Modified Paths: -------------- trunk/hastymail2/lib/misc_functions.php Modified: trunk/hastymail2/lib/misc_functions.php =================================================================== --- trunk/hastymail2/lib/misc_functions.php 2009-04-06 23:53:02 UTC (rev 837) +++ trunk/hastymail2/lib/misc_functions.php 2009-04-06 23:53:42 UTC (rev 838) @@ -630,8 +630,10 @@ $found = false; $theme = 'default'; if (in_array($pd->dsp_page, $app_pages)) { - if (isset($conf['site_themes'][$pd->pd['theme']['templates']]) && - $conf['site_themes'][$pd->pd['theme']['templates']]) { + if (isset($conf['site_themes'][$pd->pd['theme']])) { + $atts = $conf['site_themes'][$pd->pd['theme']]; + } + if (isset($atts['templates']) && $atts['templates']) { $file = 'themes/'.$pd->pd['theme'].'/templates/'.$pd->dsp_page.'.php'; $theme = $pd->pd['theme']; require_check($file); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |