}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
if (IS_FORM_SENT()) {
// Generate string
$MODs = array();
foreach (REQUEST_POST('mod') as $mod => $sel) {
// Now you can never deselect the admin module, bah!!! ;-)
- if (($sel == "Y") || ($mod == "admin")) {
+ if (($sel == 'Y') || ($mod == 'admin')) {
// Add module to queue
$MODs[] = $mod;
}
} else {
// Load existing modules and generate TR rows for the template
$result = SQL_QUERY("SELECT module, title FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY module", __FILE__, __LINE__);
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Set title to three dashes when no title is supplied
if (empty($content['title'])) $content['title'] = "---";
// Already registered module?
if (ereg($content['module'], getConfig('rewrite_skip'))) {
// Found
- $y = " checked=\"checked\"";
- $n = "";
+ $y = ' chkecked="checked"';
+ $n = '';
} else {
// Not found
- $y = "";
- $n = " checked=\"checked\"";
+ $y = '';
+ $n = ' chkecked="checked"';
}
// Remember data in array for the dynamic row template