From 0054edbc891e432b9d2f5a7f4416436b7659b193 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Fri, 4 Aug 2017 10:38:28 -0400 Subject: [PATCH] Restore the loads function with empty content, for backward compatibilities --- gulliver/system/class.g.php | 85 +++++++++++++++++++ .../methods/cases/casesStartPage_Ajax.php | 4 - workflow/engine/skinEngine/skinEngine.php | 7 -- 3 files changed, 85 insertions(+), 11 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 4f2080b21..af2371508 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -43,6 +43,91 @@ class G public static $pathDataPublic; public static $httpHost; + /** + * Load Gulliver Classes + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadSystem($strClass) + { + //For backward compatibilities + } + + /** + * Load System Classes + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadSystemExist($strClass) + { + //For backward compatibilities + } + + /** + * Include javascript files + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadInclude($strClass) + { + //For backward compatibilities + } + + /** + * Include all model files + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadAllModelClasses($strClass) + { + //For backward compatibilities + } + + /** + * public function LoadClassRBAC + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadClassRBAC($strClass) + { + //For backward compatibilities + } + + /** + * If the class is not defined by the aplication, it + * attempt to load the class from gulliver.system + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadClass($strClass) + { + //For backward compatibilities + } + + /** + * public function LoadThirdParty + * @access public + * @param string $strClass + * @return void + * @deprecated 08-04-2017 + */ + public static function LoadThirdParty($strClass) + { + //For backward compatibilities + } + /** * is_https * @return bool diff --git a/workflow/engine/methods/cases/casesStartPage_Ajax.php b/workflow/engine/methods/cases/casesStartPage_Ajax.php index 3318eb737..81012da6d 100644 --- a/workflow/engine/methods/cases/casesStartPage_Ajax.php +++ b/workflow/engine/methods/cases/casesStartPage_Ajax.php @@ -133,10 +133,6 @@ function ellipsis ($text, $numb) function lookinginforContentProcess ($sproUid) { - require_once 'classes/model/Content.php'; - require_once 'classes/model/Task.php'; - require_once 'classes/model/Content.php'; - $oContent = new Content(); ///we are looking for a pro title for this process $sproUid $oCriteria = new Criteria( 'workflow' ); diff --git a/workflow/engine/skinEngine/skinEngine.php b/workflow/engine/skinEngine/skinEngine.php index 119f5390e..7fc88b33d 100644 --- a/workflow/engine/skinEngine/skinEngine.php +++ b/workflow/engine/skinEngine/skinEngine.php @@ -198,8 +198,6 @@ class SkinEngine private function _raw() { - require_once PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'; // put full path to Smarty.class.php - G::verifyPath ( PATH_SMARTY_C, true ); G::verifyPath ( PATH_SMARTY_CACHE, true ); @@ -322,8 +320,6 @@ class SkinEngine private function _blank() { - require_once PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'; // put full path to Smarty.class.php - G::verifyPath(PATH_SMARTY_C, true); G::verifyPath(PATH_SMARTY_CACHE, true); @@ -350,7 +346,6 @@ class SkinEngine private function _submenu() { - require_once PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'; // put full path to Smarty.class.php global $G_ENABLE_BLANK_SKIN; //menu global $G_MAIN_MENU; @@ -469,7 +464,6 @@ class SkinEngine private function _tracker() { - require_once PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'; // put full path to Smarty.class.php global $G_ENABLE_BLANK_SKIN; G::verifyPath ( PATH_SMARTY_C, true ); @@ -761,7 +755,6 @@ class SkinEngine } if (defined('SYS_SYS')) { - require_once ("classes" . PATH_SEP . "class.pmLicenseManager.php"); $pmLicenseManagerO = &pmLicenseManager::getSingleton(); $expireIn = $pmLicenseManagerO->getExpireIn(); $expireInLabel = $pmLicenseManagerO->getExpireInLabel();