Index: trunk/admin/include/elements.php =================================================================== diff -u -r288 -r294 --- trunk/admin/include/elements.php (.../elements.php) (revision 288) +++ trunk/admin/include/elements.php (.../elements.php) (revision 294) @@ -47,7 +47,7 @@ $envar = "env=" . BuildEnv(); /* this function loads the javascript for each module's toolbar */ -function load_module_javascript($sectionname) +function load_module_javascript($sectionname, $skip_modules = Array() ) { global $adminURL, $pathtoroot; @@ -61,8 +61,7 @@ foreach($m as $key=>$value) { $path = $pathtoroot. $value."admin/include/toolbar/".$sectionname.".php"; - - if(file_exists($path)) + if( !in_array($value, $skip_modules) && file_exists($path) ) { echo "\n\n"; include_once($path); @@ -92,7 +91,7 @@ //*********************************** //Page Header -function int_header($toolbar=NULL,$NavBarText=NULL,$ExtraTitle=NULL,$onLoad=NULL, $ExtraHead=NULL) +function int_header($toolbar=NULL,$NavBarText=NULL,$ExtraTitle=NULL,$onLoad=NULL, $ExtraHead=NULL,$skip_modules=Array()) { global $pathtoroot; global $pathtolocal; @@ -104,7 +103,7 @@ global $envar; global $admin; global $metatag; - + $style_sheet_global = $adminURL."/include/style.css"; $style_sheet_local = $localURL."admin/include/style.css"; @@ -133,7 +132,8 @@ print $ExtraHead; $sectionname = explode(":", $section); $sectionname = $sectionname[sizeof($sectionname)-1]; - load_module_javascript($sectionname); + + load_module_javascript($sectionname, $skip_modules); if(is_object($toolbar)) print $toolbar->GetInitScript(); print "