From c8da77eca19dbb049c4b9fb8b5dbfe7bd2279f07 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sun, 18 Jan 2015 10:40:41 +0000 Subject: [PATCH] Text class fix. --- resources/classes/text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/classes/text.php b/resources/classes/text.php index e81b8c9007..54a22353e4 100644 --- a/resources/classes/text.php +++ b/resources/classes/text.php @@ -31,8 +31,8 @@ class text { */ public function get($language_code = null, $app_path = null) { //get the app_languages.php - if (isset($app_path)) { - require glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$app_path."/app_{languages}.php",GLOB_BRACE); + if ($app_path != null) { + require $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/".$app_path."/app_languages.php"; } else { require getcwd().'/app_languages.php';