Fix: use full path in module

This commit is contained in:
Regis Houssin 2011-01-06 20:01:32 +00:00
parent e349fd073a
commit 026bb66ddd
2 changed files with 1 additions and 6 deletions

View File

@ -293,11 +293,6 @@ if (GETPOST("action") == 'refreshmanual')
/******************************************************************* /*******************************************************************
* View * View
********************************************************************/ ********************************************************************/
/*
$morejs=array(
"/includes/jquery/plugins/layout/jquery.layout-latest.js"
);
*/
//print "xx".$_SESSION["dol_screenheight"]; //print "xx".$_SESSION["dol_screenheight"];
$maxheightwin=(isset($_SESSION["dol_screenheight"]) && $_SESSION["dol_screenheight"] > 500)?($_SESSION["dol_screenheight"]-166):660; $maxheightwin=(isset($_SESSION["dol_screenheight"]) && $_SESSION["dol_screenheight"] > 500)?($_SESSION["dol_screenheight"]-166):660;

View File

@ -894,7 +894,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
foreach($arrayofjs as $jsfile) foreach($arrayofjs as $jsfile)
{ {
if (! preg_match('/^\//',$jsfile)) $jsfile='/'.$jsfile; // For backward compatibility 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";
} }
} }