Skip to content

Commit

Permalink
Fix issue Undefined constant ASTROID_JOOMLA_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Oct 11, 2022
1 parent 6b1d076 commit cf27587
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/library/astroid/Helper/Client.php
Expand Up @@ -204,7 +204,10 @@ public function onContentPrepareForm($form, &$data)
$loaded = true;
}

if (ASTROID_JOOMLA_VERSION == 4 && $loaded) {
$version = new \JVersion;
$version = $version->getShortVersion();
$version = substr($version, 0, 1);
if ($version == 4 && $loaded) {
\JFactory::getDocument()->addScriptDeclaration('
(function(){
var fixed = false;
Expand Down

0 comments on commit cf27587

Please sign in to comment.