From 672f75a4d7818caf2d83a098c71ed83788dbc747 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Apr 2009 19:50:39 +0000 Subject: [PATCH] Can disable prototype and scriptaculous --- htdocs/main.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 05aa1d543df..871c20bf597 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -355,7 +355,7 @@ else $login=$_SESSION["dol_login"]; $resultFetchUser=$user->fetch($login); dol_syslog("This is an already logged session. _SESSION['dol_login']=".$login); - + if ($resultFetchUser <= 0) { // Account has been removed after login @@ -422,7 +422,7 @@ if (! isset($_SESSION["dol_login"])) { $db->commit(); } - + // Create entity cookie if ($conf->multicompany->enabled && isset($_POST["entity"])) { @@ -718,9 +718,9 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs require_once DOL_DOCUMENT_ROOT.'/lib/ajax.lib.php'; // This one is required for all Ajax features - print ''."\n"; + if (! defined('DISABLE_PROTOTYPE')) print ''."\n"; // This one is required fox boxes - print ''."\n"; + if (! defined('DISABLE_SCRIPTACULOUS')) print ''."\n"; // Those ones are required only with option "confirm by ajax popup" if ($conf->global->MAIN_CONFIRM_AJAX)