mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 2348 330 error of counter widget
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11154 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
910814ac5e
commit
d60b68df35
1 changed files with 9 additions and 5 deletions
|
|
@ -19,11 +19,15 @@
|
|||
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$output = $oCounterModel->getStatus(array('00000000', date('Ymd', time()-60*60*24), date('Ymd')), $site_module_info->site_srl);
|
||||
foreach($output as $key => $val) {
|
||||
if(!$key) Context::set('total_counter', $val);
|
||||
elseif($key == date("Ymd")) Context::set('today_counter', $val);
|
||||
else Context::set('yesterday_counter', $val);
|
||||
}
|
||||
if(count($output))
|
||||
{
|
||||
foreach($output as $key => $val)
|
||||
{
|
||||
if(!$key) Context::set('total_counter', $val);
|
||||
elseif($key == date("Ymd")) Context::set('today_counter', $val);
|
||||
else Context::set('yesterday_counter', $val);
|
||||
}
|
||||
}
|
||||
// Set a path of the template skin (values of skin, colorset settings)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue