// We currently don't want to install an extension so let's find out if we need...
$EXT_LOAD_MODE = "register";
- $JOBS_DONE = true;
+ $jobsDone = true;
// Open the extension directory
$handle = opendir(constant('PATH')."inc/extensions/") or mxchange_die("Cannot read extension directory!");
if (SQL_NUMROWS($result_tasks) > 0) {
// New jobs found!
- $JOBS_DONE = false;
+ $jobsDone = false;
} // END - if
// Free the result
SQL_FREERESULT($result);
// Return status
- return $JOBS_DONE;
+ return $jobsDone;
}
// Outputs selected tasks
function OUTPUT_SELECTED_TASKS ($POST, $result_tasks) {
- global $NOTES;
if ((isset($POST['assign'])) && (count($POST['task']) > 0)) {
// Assign / do tasks
$OUT = ""; $SW = 2;
SET_SQLS(EXTENSION_REGISTER($ext_name, $id, true));
// Add notes to text
- $text .= $NOTES;
+ $text .= EXT_GET_NOTES();
// Set title
$title = getMessage('ADMIN_SQLS_EXECUTED_ON_REGISTER');
EXTENSION_UPDATE($ext_name, $ext_ver, true);
// Add notes to text
- $text .= $NOTES;
+ $text .= EXT_GET_NOTES();
// Set title
$title = getMessage('ADMIN_SQLS_EXECUTED_ON_UPDATE');
} else {
// Run SQL commands in dry mode but only return the notes
EXTENSION_UPDATE($ext_name, $ext_ver, true);
- $text .= $NOTES;
+ $text .= EXT_GET_NOTES();
}
// Prepare array for the template