CRM-14208 move joomlaBase outside of condition clause
authorBrian Shaughnessy <brian@lcdservices.biz>
Wed, 9 Apr 2014 01:34:08 +0000 (21:34 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Wed, 9 Apr 2014 01:34:08 +0000 (21:34 -0400)
CRM/Utils/System/Joomla.php

index 1cdb100697172e661429f3cade8512c23d4cd9bd..948768463fe532d67f8979c091c7ac1145fbb120 100644 (file)
@@ -488,8 +488,8 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
       $row = $users[0];
     }
 
+    $joomlaBase = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))));
     if ( !defined('JVERSION') ) {
-      $joomlaBase = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))));
       require $joomlaBase . '/libraries/cms/version/version.php';
       $jversion = new JVersion;
       define('JVERSION', $jversion->getShortVersion());