Use the new multi-lingual code on misc files.

This commit is contained in:
Nate Jones
2015-01-18 10:33:34 +00:00
parent 4e2ec883b1
commit 474e63f939
21 changed files with 39 additions and 79 deletions
+4 -6
View File
@@ -446,20 +446,18 @@ include "root.php";
//datatase schema
public function schema ($format) {
//set the global variable
global $db, $db_type, $db_name, $db_username, $db_password;
global $db_host, $db_path, $db_port, $upgrade_data_types, $text;
//get the PROJECT PATH
include "root.php";
//add multi-lingual support
if (!isset($text)) {
require "core/upgrade/app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get(null,'core/upgrade');
}
//PHP PDO check if table or column exists