Translate: Necessary resource mods.

This commit is contained in:
Nate Jones 2015-01-18 07:54:19 +00:00
parent b29c9ce2a2
commit 283cda7aa1
2 changed files with 9 additions and 0 deletions

View File

@ -130,4 +130,8 @@ require_once "resources/require.php";
//start the output buffer
ob_start();
//for translate tool (if available)
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/translate")) {
require_once("app/translate/translate_header.php");
}
?>

View File

@ -79,4 +79,9 @@
require "resources/pdo.php";
require_once "resources/functions.php";
require_once "resources/switch.php";
//change language on the fly - for translate tool (if available)
if ($_REQUEST['view_lang_code'] != '') {
$_SESSION['domain']['language']['code'] = $_REQUEST['view_lang_code'];
}
?>