Skip to content

Commit

Permalink
PHP7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejey committed Feb 25, 2018
1 parent 8e58068 commit f1ead2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jTemplate.class.php
Expand Up @@ -50,7 +50,7 @@ class jTemplate
* @param object $owner Parser owner
* @return void
*/
public function __construct($template, &$data, &$owner)
public function __construct($template, &$data, &$owner = '')
{
// set current directory for template includes
if (strpos($template, "/") !== false)
Expand Down
2 changes: 1 addition & 1 deletion lib/objects.class.php
Expand Up @@ -1066,7 +1066,7 @@ function processTitle($title, $object = 0)
}
else
{
$jTempl = new jTemplate($title, $data, $this);
$jTempl = new jTemplate($title, $data);
}

$title = $jTempl->result;
Expand Down

0 comments on commit f1ead2c

Please sign in to comment.