#18549056 : shorten table name

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7190 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-20 06:25:21 +00:00
parent 92be400c27
commit bd47ed941f
16 changed files with 37 additions and 17 deletions

View file

@ -8,6 +8,7 @@
class autoinstallAdminView extends autoinstall {
var $categories;
function init() {
$template_path = sprintf("%stpl/",$this->module_path);
@ -181,7 +182,7 @@
$oModel = &getModel('autoinstall');
$item = $oModel->getLatestPackage();
if(!$item || $item->updatedate < $updateDate )
if(!$item || $item->updatedate < $updateDate || count($this->categories) < 1)
{
Context::set('need_update', true);
return;
@ -231,8 +232,8 @@
function dispCategory()
{
$oModel = &getModel('autoinstall');
$categories = &$oModel->getCategoryList();
Context::set('categories', $categories);
$this->categories = &$oModel->getCategoryList();
Context::set('categories', $this->categories);
}
}
?>