From 026bb66ddde25b98874f60e5b234b31dafb4fda6 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Thu, 6 Jan 2011 20:01:32 +0000 Subject: [PATCH] Fix: use full path in module --- htdocs/ecm/index.php | 5 ----- htdocs/main.inc.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index e8d8101558a..62a2b239d0b 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -293,11 +293,6 @@ if (GETPOST("action") == 'refreshmanual') /******************************************************************* * View ********************************************************************/ -/* -$morejs=array( -"/includes/jquery/plugins/layout/jquery.layout-latest.js" -); -*/ //print "xx".$_SESSION["dol_screenheight"]; $maxheightwin=(isset($_SESSION["dol_screenheight"]) && $_SESSION["dol_screenheight"] > 500)?($_SESSION["dol_screenheight"]-166):660; diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index a56759da894..6e510b27348 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -894,7 +894,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs foreach($arrayofjs as $jsfile) { if (! preg_match('/^\//',$jsfile)) $jsfile='/'.$jsfile; // For backward compatibility - print '<script type="text/javascript" src="'.DOL_URL_ROOT.$jsfile.'"></script>'."\n"; + print '<script type="text/javascript" src="'.$jsfile.'"></script>'."\n"; } } -- GitLab