[-] BO : fix #PSFV-316

This commit is contained in:
lLefevre
2012-01-05 13:22:46 +00:00
parent 136d1657d0
commit 5cb7cdcdfd

View File

@@ -114,37 +114,6 @@ class AdminBackupControllerCore extends AdminController
}
}
public function initContent()
{
// toolbar (save, cancel, new, ..)
$this->initToolbar();
if ($this->display == 'edit' || $this->display == 'add')
{
if (!$this->loadObject(true))
return;
$this->content .= $this->initViewDownload();
}
else if ($this->display == 'view')
{
// Some controllers use the view action without an object
if ($this->className)
$this->loadObject(true);
$this->content .= $this->renderView();
}
else if (!$this->ajax)
{
$this->content .= $this->renderList();
$this->content .= $this->renderOptions();
}
$this->context->smarty->assign(array(
'content' => $this->content,
'url_post' => self::$currentIndex.'&token='.$this->token,
));
parent::initContent();
}
/**
* Load class object using identifier in $_GET (if possible)
* otherwise return an empty object