Define the text array before it is used.

This commit is contained in:
markjcrane 2016-04-29 15:32:55 -06:00
parent 19eae3dd72
commit e7dd30113b
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ class text {
* @var string $app_path examples: app/exec or core/domains
*/
public function get($language_code = null, $app_path = null, $exclude_global = false) {
//define the text array
$text = array();
//get the global app_languages.php
if (!$exclude_global){
include $_SERVER["PROJECT_ROOT"]."/resources/app_languages.php";