projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000290] Can't upload files
[fa-stable.git]
/
includes
/
session.inc
diff --git
a/includes/session.inc
b/includes/session.inc
index f1baa403b7a01e0311af955a5e3815f06a1f8c46..5620c78d1af384e68f1e966683808ddc09e616c5 100644
(file)
--- a/
includes/session.inc
+++ b/
includes/session.inc
@@
-177,6
+177,8
@@
include_once($path_to_root . "/includes/ajax.inc");
include_once($path_to_root . "/includes/ui/ui_msgs.inc");
include_once($path_to_root . "/includes/prefs/sysprefs.inc");
include_once($path_to_root . "/includes/ui/ui_msgs.inc");
include_once($path_to_root . "/includes/prefs/sysprefs.inc");
+include_once($path_to_root . "/includes/hooks.inc");
+
/*
Uncomment the setting below when using FA on shared hosting
to avoid unexpeced session timeouts.
/*
Uncomment the setting below when using FA on shared hosting
to avoid unexpeced session timeouts.
@@
-206,12
+208,6
@@
if (!isset($_SESSION['language']) || !method_exists($_SESSION['language'], 'set_
$_SESSION['language']->set_language($_SESSION['language']->code);
$_SESSION['language']->set_language($_SESSION['language']->code);
-// include $Hooks object if locale file exists
-if (file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
-{
- include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc");
- $Hooks = new Hooks();
-}
include_once($path_to_root . "/includes/access_levels.inc");
include_once($path_to_root . "/version.php");
include_once($path_to_root . "/includes/access_levels.inc");
include_once($path_to_root . "/version.php");
@@
-284,6
+280,8
@@
if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){
if (!$_SESSION["wa_current_user"]->old_db)
include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
if (!$_SESSION["wa_current_user"]->old_db)
include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
+ install_hooks();
+
if (!isset($_SESSION["App"])) {
$_SESSION["App"] = new front_accounting();
$_SESSION["App"]->init();
if (!isset($_SESSION["App"])) {
$_SESSION["App"] = new front_accounting();
$_SESSION["App"]->init();