Changeset 4921
- Timestamp:
- 08/23/07 01:39:00 (6 years ago)
- Files:
-
- modules/branches/2.3/miscapps/functions.inc.php (modified) (3 diffs)
- modules/branches/2.3/miscapps/module.xml (modified) (2 diffs)
- modules/branches/2.3/miscapps/page.miscapps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/miscapps/functions.inc.php
r4767 r4921 74 74 $row['ext'] = $fc->getDefault(); 75 75 $row['enabled'] = $fc->isEnabled(); 76 echo $row['enabled']?"enabled":"disabled"; 76 77 77 78 return $row; … … 112 113 } 113 114 114 function miscapps_edit($miscapps_id, $description, $ext, $dest ) {115 function miscapps_edit($miscapps_id, $description, $ext, $dest, $enabled=true) { 115 116 global $db; 116 117 $sql = "UPDATE miscapps SET ". … … 127 128 $fc->setDescription($description); 128 129 $fc->setDefault($ext, true); 130 $fc->setEnabled($enabled); 129 131 $fc->update(); 130 132 } modules/branches/2.3/miscapps/module.xml
r4821 r4921 2 2 <rawname>miscapps</rawname> 3 3 <name>Misc Applications</name> 4 <version>0.2.3. 3</version>4 <version>0.2.3.4</version> 5 5 <type>setup</type> 6 6 <category>Internal Options & Configuration</category> … … 12 12 </menuitems> 13 13 <changelog> 14 *0.2.3.4* #2305 Feature Status broken 14 15 *0.2.3.3* fixed some undefined variables, bump for rc1 15 16 *0.2.3.2* #2177: removed apparently corrupted newline at end of file modules/branches/2.3/miscapps/page.miscapps.php
r4678 r4921 35 35 break; 36 36 case 'edit': 37 miscapps_edit($miscapp_id, $description, $ext, $dest );37 miscapps_edit($miscapp_id, $description, $ext, $dest, $enabled); 38 38 needreload(); 39 39 redirect_standard('extdisplay'); … … 98 98 <td><a href="#" class="info"><?php echo _("Feature Status")?>:<span><?php echo _("If this code is enabled or not.")?></span></a></td> 99 99 <td><select name="enabled"> 100 <option value="1" <?php if ($enabled) echo " checked"; ?>>Enabled</option>101 <option value="0" <?php if (!$enabled) echo " checked"; ?>>Disabled</option>100 <option value="1" <?php if ($enabled) echo "SELECTED"; ?>>Enabled</option> 101 <option value="0" <?php if (!$enabled) echo "SELECTED"; ?>>Disabled</option> 102 102 </select></td> 103 103 </tr>
