From d008d29e2052fe928ea27a244c8daa3e3741e297 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Fri, 4 Aug 2017 17:44:29 -0400 Subject: [PATCH] Remove require_once --- .../engine/methods/cases/cases_SchedulerValidateUser.php | 3 --- workflow/engine/methods/setup/appCacheViewAjax.php | 1 - workflow/engine/methods/setup/language_Ajax.php | 3 +-- workflow/engine/methods/tools/ajaxListener.php | 9 --------- 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/workflow/engine/methods/cases/cases_SchedulerValidateUser.php b/workflow/engine/methods/cases/cases_SchedulerValidateUser.php index ae1039a84..752c4ff38 100644 --- a/workflow/engine/methods/cases/cases_SchedulerValidateUser.php +++ b/workflow/engine/methods/cases/cases_SchedulerValidateUser.php @@ -50,9 +50,6 @@ $params = array ('userid' => $user,'password' => $pass); $result = $client->__SoapCall( 'login', array ($params) ); if ($result->status_code == 0) { - if (! class_exists( 'Users' )) { - require ("classes/model/UsersPeer.php"); - } $oCriteria = new Criteria( 'workflow' ); $oCriteria->addSelectColumn( 'USR_UID' ); $oCriteria->add( UsersPeer::USR_USERNAME, $sWS_USER ); diff --git a/workflow/engine/methods/setup/appCacheViewAjax.php b/workflow/engine/methods/setup/appCacheViewAjax.php index b8b041296..1e1f5042d 100644 --- a/workflow/engine/methods/setup/appCacheViewAjax.php +++ b/workflow/engine/methods/setup/appCacheViewAjax.php @@ -1,5 +1,4 @@ xssFilterHard($_POST); diff --git a/workflow/engine/methods/setup/language_Ajax.php b/workflow/engine/methods/setup/language_Ajax.php index fa2f39459..0b1d2a3d7 100644 --- a/workflow/engine/methods/setup/language_Ajax.php +++ b/workflow/engine/methods/setup/language_Ajax.php @@ -34,7 +34,6 @@ try { $_POST['function'] = $filter->xssFilterHard($_POST['function']); switch ($_POST['function']) { case 'savePredetermined': - require_once "classes/model/Translation.php"; $tranlationsList = Translation::getTranslationEnvironments(); g::pr( $tranlationsList ); die(); @@ -46,7 +45,7 @@ try { break; case 'languagesList': - $isoCountry = new isoCountry(); + $isoCountry = new IsoCountry(); $translationRow = new Translation(); $response = new stdClass(); $translationsEnvList = $translationRow->getTranslationEnvironments(); diff --git a/workflow/engine/methods/tools/ajaxListener.php b/workflow/engine/methods/tools/ajaxListener.php index 687b6e62c..8aa881dbc 100644 --- a/workflow/engine/methods/tools/ajaxListener.php +++ b/workflow/engine/methods/tools/ajaxListener.php @@ -27,9 +27,6 @@ * @author Erik Amaru Ortiz * @date Jan 10th, 2010 */ -if (! class_exists( 'Translation' )) { - require "classes/model/Translation.php"; -} $action = $_REQUEST['action']; unset($_REQUEST['action']); @@ -45,12 +42,6 @@ class Ajax $params['dateFrom'] = str_replace('T00:00:00', '', $params['dateFrom']); $params['dateTo'] = str_replace('T00:00:00', '', $params['dateTo']); $result = Translation::getAll('en', $params['start'], $params['limit'], $search, $params['dateFrom'], $params['dateTo']); - //$result = Translation::getAll('en', $params['start'], $params['limit'], $search); - - - /* foreach($result->data as $i=>$row){ - $result->data[$i]['TRN_VALUE'] = substr($row['TRN_VALUE'], 0, 15) . '...'; - } */ echo G::json_encode($result); }