diff options
| author | spiderr <spider@viovio.com> | 2013-04-19 17:33:31 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-19 17:33:31 -0400 |
| commit | 61042e18aa1cbe9636d2ce53782e968eb224a245 (patch) | |
| tree | 3997ba910c6ac243c085f0c43e1fabc9645d0c17 | |
| parent | 78015d877ad9153dcfdb6ae5030d74652c1591c0 (diff) | |
| parent | e26968e217948ba948c6223b2fda257595094323 (diff) | |
| download | themes-61042e18aa1cbe9636d2ce53782e968eb224a245.tar.gz themes-61042e18aa1cbe9636d2ce53782e968eb224a245.tar.bz2 themes-61042e18aa1cbe9636d2ce53782e968eb224a245.zip | |
Merge branch 'master' of github.com:bitweaver/themes
| -rw-r--r-- | smarty/libs/Smarty.class.php | 2 | ||||
| -rw-r--r-- | smarty/libs/sysplugins/smarty_internal_compile_include_php.php | 2 | ||||
| -rw-r--r-- | smartyplugins/resource.bitpackage.php | 2 | ||||
| -rw-r--r-- | templates/module.tpl | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/smarty/libs/Smarty.class.php b/smarty/libs/Smarty.class.php index 40532fc..dde8d5b 100644 --- a/smarty/libs/Smarty.class.php +++ b/smarty/libs/Smarty.class.php @@ -668,6 +668,7 @@ class Smarty extends Smarty_Internal_TemplateBase { if (isset($allowed[$name])) { return $this->{$allowed[$name]}(); } else { +bt(); trigger_error('Undefined property: '. get_class($this) .'::$'. $name, E_USER_NOTICE); } } @@ -694,6 +695,7 @@ class Smarty extends Smarty_Internal_TemplateBase { if (isset($allowed[$name])) { $this->{$allowed[$name]}($value); } else { +bt(); trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); } } diff --git a/smarty/libs/sysplugins/smarty_internal_compile_include_php.php b/smarty/libs/sysplugins/smarty_internal_compile_include_php.php index d527123..4551179 100644 --- a/smarty/libs/sysplugins/smarty_internal_compile_include_php.php +++ b/smarty/libs/sysplugins/smarty_internal_compile_include_php.php @@ -105,4 +105,4 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase { } -?>
\ No newline at end of file +?> diff --git a/smartyplugins/resource.bitpackage.php b/smartyplugins/resource.bitpackage.php index d0cd875..08ad9fe 100644 --- a/smartyplugins/resource.bitpackage.php +++ b/smartyplugins/resource.bitpackage.php @@ -42,7 +42,7 @@ class Smarty_Resource_Bitpackage extends Smarty_Resource_Custom { if( !empty( $_template->tpl_vars['module_params'] ) ) { // module_params were passed through via the {include}, // e.g. {include file="bitpackage:foobar/mod_list_foo.tpl" module_params="user_id=`$gBitUser->mUserId`&sort_mode=created_desc"} - $moduleParams['module_params'] = $gBitThemes->parseString( $pIncludeVars['module_params'] ); + $moduleParams['module_params'] = $gBitThemes->parseString( $_template->tpl_vars['module_params']->value ); } elseif( !empty( $_template->tpl_vars['moduleParams'] ) ) { // Module Params were passed in from the template, like kernel/dynamic.tpl $moduleParams = $_template->tpl_vars['moduleParams']->value; diff --git a/templates/module.tpl b/templates/module.tpl index 0d6d3ce..52fecfb 100644 --- a/templates/module.tpl +++ b/templates/module.tpl @@ -16,7 +16,7 @@ {assign var=area value=$moduleArea} {/if} -<div class="module{if !empty($modInfo.classplus)} {$modInfo.classplus}{/if} {$modInfo.name|replace:'_':'-'}" {if !empty($area)}id="{$area}{$moduleParams.pos}"{/if}> +<div class="well module{if !empty($modInfo.classplus)} {$modInfo.classplus}{/if} {$modInfo.name|replace:'_':'-'}" {if !empty($area)}id="{$area}{$moduleParams.pos}"{/if}> {if $modInfo.title} <h4> {if $gBitSystem->isFeatureActive( 'themes_module_controls' )} |
