Fix smarty issues
This commit is contained in:
parent
3164cd518a
commit
bdba96259a
4 changed files with 12 additions and 12 deletions
|
@ -266,6 +266,7 @@ class Plugincache {
|
||||||
case strtolower($plugin_name).'_hook_call_rest':
|
case strtolower($plugin_name).'_hook_call_rest':
|
||||||
case strtolower($plugin_name).'_hook_get_db':
|
case strtolower($plugin_name).'_hook_get_db':
|
||||||
case strtolower($plugin_name).'_hook_return_global':
|
case strtolower($plugin_name).'_hook_return_global':
|
||||||
|
case strtolower($plugin_name).'_hook_activate':
|
||||||
$content['hook_info'][$plugin_name] = call_user_func($value);
|
$content['hook_info'][$plugin_name] = call_user_func($value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ function hook_variables()
|
||||||
* if not created.
|
* if not created.
|
||||||
* Contains the sql code
|
* Contains the sql code
|
||||||
*/
|
*/
|
||||||
function api_key_management_hook_create_tb()
|
function api_key_management_hook_activate()
|
||||||
{
|
{
|
||||||
$dbl = new DBLayer( "lib" );
|
$dbl = new DBLayer( "lib" );
|
||||||
$sql = "
|
$sql = "
|
||||||
|
|
|
@ -134,6 +134,15 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{block name=content}{/block}
|
{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"}
|
{if ! isset($no_visible_elements) or $no_visible_elements eq "FALSE"}
|
||||||
|
|
|
@ -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}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue