Text class fix.
This commit is contained in:
parent
2448ab3a8e
commit
c8da77eca1
|
|
@ -31,8 +31,8 @@ class text {
|
||||||
*/
|
*/
|
||||||
public function get($language_code = null, $app_path = null) {
|
public function get($language_code = null, $app_path = null) {
|
||||||
//get the app_languages.php
|
//get the app_languages.php
|
||||||
if (isset($app_path)) {
|
if ($app_path != null) {
|
||||||
require glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$app_path."/app_{languages}.php",GLOB_BRACE);
|
require $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/".$app_path."/app_languages.php";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
require getcwd().'/app_languages.php';
|
require getcwd().'/app_languages.php';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue