Changeset 1596
- Timestamp:
- 06/07/08 00:56:18 (6 months ago)
- Files:
-
- devel/lib/setup.php (modified) (2 diffs)
- devel/lib/templates.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/setup.php
r1571 r1596 7 7 global $SESSION; 8 8 global $PAGE; 9 global $js_files; 9 10 10 11 /// First try to detect some attacks on older buggy PHP versions … … 426 427 if (!isset($PAGE->menu_top )) { $PAGE->menu_top = array();} 427 428 if (!isset($PAGE->menu_bottom)) { $PAGE->menu_bottom = array();} 429 if (!isset($PAGE->js_setup )) { $PAGE->js_setup = array();} 430 431 // Setting up global.js for make available ELGG_WWWROOT for JavaScript 432 if(!isset($js_files)){ 433 $js_files = array(); 434 $js_files['global'][]=array("path"=>"lib/global.js","external"=>false); 435 } 428 436 429 437 // devel/lib/templates.php
r1595 r1596 1299 1299 global $CFG,$js_files; 1300 1300 1301 if(!isset($js_files)){1302 $js_files = array();1303 $js_files['global'][]=array("path"=>"lib/global.js","external"=>false);1304 }1305 1306 1301 if(!empty($context)){ 1307 1302 if(!array_key_exists($context,$js_files)||$overwrite){ … … 1321 1316 function templates_js_setup($context="global"){ 1322 1317 global $CFG,$PAGE,$js_files,$metatags; 1323 1318 $resp = ""; 1319 1324 1320 if(!$PAGE->js_setup[$context]){ 1325 1321 $inlinefiles = null;
