Skip to content

Commit

Permalink
fixed bug 25241: Cron job Delete trash bin fails
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Apr 25, 2019
1 parent 78036a9 commit f7ec539
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Modules/LearningModule/classes/class.ilObjContentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,15 @@ function __construct($a_id = 0,$a_call_by_reference = true)
$this->tree = $DIC->repositoryTree();
$this->lng = $DIC->language();
$this->error = $DIC["ilErr"];
$this->tpl = $DIC["tpl"];
$this->locator = $DIC["ilLocator"];
if (isset($DIC["tpl"]))
{
$this->tpl = $DIC["tpl"];
}
if (isset($DIC["ilLocator"]))
{
$this->locator = $DIC["ilLocator"];
}

// this also calls read() method! (if $a_id is set)
parent::__construct($a_id,$a_call_by_reference);

Expand Down

0 comments on commit f7ec539

Please sign in to comment.