|
From: Jon O. <jon...@us...> - 2008-02-16 13:07:14
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23150 Modified Files: Tag: core28x mx_functions_style.php Log Message: Fix for non-default module styles Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.12 retrieving revision 1.17.2.13 diff -C2 -d -r1.17.2.12 -r1.17.2.13 *** mx_functions_style.php 16 Feb 2008 00:34:52 -0000 1.17.2.12 --- mx_functions_style.php 16 Feb 2008 13:07:09 -0000 1.17.2.13 *************** *** 709,712 **** --- 709,722 ---- // + // Hack for modern modules, with non-subSilver default template + // + if (!empty($this->default_module_style) && $this->default_module_style != $this->default_template_name) + { + $this->default_current_template_path = 'templates/' . $this->default_module_style . '/'; + $this->default_template_name = $this->default_module_style; + $this->default_module_style = ''; + } + + // // Load mxBB Template configuration data // - First try current template *************** *** 929,932 **** --- 939,947 ---- $this->_load_module_style(); } + + // + // Reset custom module default style, once used. + // + $this->default_module_style = ''; } |