use array to define included JavaScript libraries

This commit is contained in:
Sebastian Mendel
2007-10-04 09:22:50 +00:00
parent e9f1ed82c6
commit 40b3ce9fd1
22 changed files with 74 additions and 108 deletions

View File

@@ -51,9 +51,8 @@ if (!defined('PMA_IDX_INCLUDED')) {
}
// Displays headers (if needed)
$js_to_run = isset($index) && isset($do_save_data)
? 'functions.js'
: 'indexes.js';
$GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'indexes.js';
require_once './libraries/header.inc.php';
} // end if