Translate: Necessary resource mods.
This commit is contained in:
@@ -130,4 +130,8 @@ require_once "resources/require.php";
|
|||||||
//start the output buffer
|
//start the output buffer
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
//for translate tool (if available)
|
||||||
|
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/translate")) {
|
||||||
|
require_once("app/translate/translate_header.php");
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
@@ -79,4 +79,9 @@
|
|||||||
require "resources/pdo.php";
|
require "resources/pdo.php";
|
||||||
require_once "resources/functions.php";
|
require_once "resources/functions.php";
|
||||||
require_once "resources/switch.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'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user