Skip to content

Commit

Permalink
Fix warning Constant ASTROID_TEMPLATE_NAME already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Sep 12, 2024
1 parent 1068d18 commit 7d8c6c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/library/astroid/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ private function _set($id)
$this->isAstroid = true;
}
if ($this->isAstroid) {
define('ASTROID_TEMPLATE_NAME', $this->template);
if (!defined('ASTROID_TEMPLATE_NAME')) {
define('ASTROID_TEMPLATE_NAME', $this->template);
}
Helper::loadLanguage('astroid');
}
}
Expand Down

0 comments on commit 7d8c6c5

Please sign in to comment.