1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 11:40:48 +03:00

Fix рендеринга шаблонов из ajax событий плагина Profiler

This commit is contained in:
Alexey Kachayev 2009-12-28 12:01:18 +00:00
parent 8e448b021b
commit af24e1b86f
3 changed files with 5 additions and 5 deletions

View file

@ -138,7 +138,7 @@ class PluginProfiler_ActionProfiler extends ActionPlugin {
$this->Viewer_Assign('aPaging',$aPaging);
$this->Viewer_Assign('aReports',$aReports);
$this->Viewer_Assign('aDatabaseStat',($aData=$this->PluginProfiler_Profiler_GetDatabaseStat())?$aData:array('max_date'=>'','count'=>''));
$this->Viewer_AddBlock('right','profiler/templates/skin/[skin_name]/actions/ActionProfiler/sidebar.tpl',array('plugin'=>'profiler'));
$this->Viewer_AddBlock('right','profiler/templates/skin/'.parent::SKIN_NAME_KEY.'/actions/ActionProfiler/sidebar.tpl',array('plugin'=>'profiler'));
$this->Viewer_AddHtmlTitle($this->Lang_Get('profiler_report_page_title'));
}
@ -223,7 +223,7 @@ class PluginProfiler_ActionProfiler extends ActionPlugin {
? 'level'
: 'tree')
:'report';
$this->Viewer_AssignAjax('sReportText',$oViewerLocal->Fetch("profiler/templates/skin/[skin_name]/actions/ActionProfiler/ajax/{$sTemplateName}.tpl"));
$this->Viewer_AssignAjax('sReportText',$oViewerLocal->Fetch("profiler/templates/skin/".parent::SKIN_NAME_KEY."/actions/ActionProfiler/ajax/{$sTemplateName}.tpl", 'profiler'));
}
/**
@ -253,7 +253,7 @@ class PluginProfiler_ActionProfiler extends ActionPlugin {
$oViewerLocal->Assign('oReport',$oReport);
$sTemplateName=($sAction=='tree')?'tree':'report';
$this->Viewer_AssignAjax('sReportText',$oViewerLocal->Fetch("profiler/templates/skin/[skin_name]/actions/ActionProfiler/ajax/{$sTemplateName}.tpl"));
$this->Viewer_AssignAjax('sReportText',$oViewerLocal->Fetch("profiler/templates/skin/".parent::SKIN_NAME_KEY."/actions/ActionProfiler/ajax/{$sTemplateName}.tpl", "profiler"));
}
/**

View file

@ -3,7 +3,7 @@
<a href="#" class="profiler all {if $sAction=='all'}active{/if}" onclick="lsProfiler.toggleEntriesByClass('{$oReport->getId()}','all',this); return false;">{$aLang.profiler_entries_show_all} ({$oReport->getStat('count')})</a>
<a href="#" class="profiler query {if $sAction=='query'}active{/if}" onclick="lsProfiler.toggleEntriesByClass('{$oReport->getId()}','query',this); return false;">{$aLang.profiler_entries_show_query} ({$oReport->getStat('query')})</a>
{include file='plugins/profiler/actions/ActionProfiler/ajax/level.tpl'}
{include file='profiler/templates/skin/default/actions/ActionProfiler/ajax/level.tpl'}
{else}
{$aLang.error}
{/if}

View file

@ -3,7 +3,7 @@
<a href="#" class="profiler all {if $sAction=='all'}active{/if}" onclick="lsProfiler.toggleEntriesByClass('{$oReport->getId()}','all',this); return false;">{$aLang.profiler_entries_show_all} ({$oReport->getStat('count')})</a>
<a href="#" class="profiler query {if $sAction=='query'}active{/if}" onclick="lsProfiler.toggleEntriesByClass('{$oReport->getId()}','query',this); return false;">{$aLang.profiler_entries_show_query} ({$oReport->getStat('query')})</a>
{include file='plugins/profiler/actions/ActionProfiler/ajax/level.tpl'}
{include file='profiler/templates/skin/new/actions/ActionProfiler/ajax/level.tpl'}
{else}
{$aLang.error}
{/if}