From 2bbad9904b5aaa8991a52d9fa1a88431d33091d6 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Tue, 12 Sep 2017 14:42:10 -0400 Subject: [PATCH] HOR-3850 --- gulliver/system/class.g.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 4ec14eaa2..477578c59 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -61,17 +61,23 @@ class G ]; /** - * @deprecated 3.2.2, We keep this function only for backwards compatibility because is used in the plugin manager + * This function verify if exist file name in the PATH_GULLIVER + * @param string $strClass + * @return boolean */ - public static function LoadSystem($strClass) + public function LoadSystemExist($strClass) { - //For backward compatibilities + if (file_exists( PATH_GULLIVER . 'class.' . $strClass . '.php' )) { + return true; + } else { + return false; + } } /** * @deprecated 3.2.2, We keep this function only for backwards compatibility because is used in the plugin manager */ - public function LoadSystemExist($strClass) + public static function LoadSystem($strClass) { //For backward compatibilities }