Refactor Appbox

This commit is contained in:
Romain Neutron
2012-02-21 16:11:38 +01:00
parent e217a49f6a
commit a21d830f61
3 changed files with 113 additions and 105 deletions

View File

@@ -134,7 +134,8 @@ class PDF
protected function print_thumbnailGrid($links=false)
{
$appbox = \appbox::get_instance();
$core = \bootstrap::getCore();
$appbox = \appbox::get_instance($core);
$user = \User_Adapter::getInstance($appbox->get_session()->get_usr_id(), $appbox);
$NDiapoW = 3;
@@ -331,7 +332,8 @@ class PDF
protected function print_preview($withtdm)
{
$appbox = \appbox::get_instance();
$core = \bootstrap::getCore();
$appbox = \appbox::get_instance($core);
$registry = \registry::get_instance();
$user = \User_Adapter::getInstance($appbox->get_session()->get_usr_id(), $appbox);