Fix smarty issues

This commit is contained in:
botanic 2014-09-08 02:36:38 -07:00
parent 44508e3d73
commit 087c8fce40
4 changed files with 12 additions and 12 deletions

View file

@ -266,6 +266,7 @@ class Plugincache {
case strtolower($plugin_name).'_hook_call_rest':
case strtolower($plugin_name).'_hook_get_db':
case strtolower($plugin_name).'_hook_return_global':
case strtolower($plugin_name).'_hook_activate':
$content['hook_info'][$plugin_name] = call_user_func($value);
break;
}

View file

@ -76,7 +76,7 @@ function hook_variables()
* if not created.
* Contains the sql code
*/
function api_key_management_hook_create_tb()
function api_key_management_hook_activate()
{
$dbl = new DBLayer( "lib" );
$sql = "

View file

@ -134,6 +134,15 @@
{/if}
{block name=content}{/block}
{if isset($hook_info)}
<div class="row-fluid">
{foreach from=$hook_info key=arrkey item=element}
{if $arrkey eq $smarty.get.name}
{include file=$element['TemplatePath']}
{/if}
{/foreach}
</div>
{/if}
{if ! isset($no_visible_elements) or $no_visible_elements eq "FALSE"}

View file

@ -1,12 +1,2 @@
{block name=content}
<div class="row-fluid">
{if isset($hook_info)}
{foreach from=$hook_info key=arrkey item=element}
{if $arrkey eq $smarty.get.name}
{include file=$element.TemplatePath}
{/if}
{/foreach}
{/if}
</div>
{/block}