Changeset 4921

Show
Ignore:
Timestamp:
08/23/07 01:39:00 (6 years ago)
Author:
p_lindheimer
Message:

#2305: Feature status reproting wrong status and inoperative

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/miscapps/functions.inc.php

    r4767 r4921  
    7474  $row['ext'] = $fc->getDefault(); 
    7575  $row['enabled'] = $fc->isEnabled(); 
     76  echo $row['enabled']?"enabled":"disabled"; 
    7677 
    7778  return $row; 
     
    112113} 
    113114 
    114 function miscapps_edit($miscapps_id, $description, $ext, $dest) {  
     115function miscapps_edit($miscapps_id, $description, $ext, $dest, $enabled=true) {  
    115116  global $db; 
    116117  $sql = "UPDATE miscapps SET ". 
     
    127128  $fc->setDescription($description); 
    128129  $fc->setDefault($ext, true); 
     130  $fc->setEnabled($enabled); 
    129131  $fc->update(); 
    130132} 
  • modules/branches/2.3/miscapps/module.xml

    r4821 r4921  
    22  <rawname>miscapps</rawname> 
    33  <name>Misc Applications</name> 
    4   <version>0.2.3.3</version> 
     4  <version>0.2.3.4</version> 
    55  <type>setup</type> 
    66  <category>Internal Options &amp; Configuration</category> 
     
    1212  </menuitems> 
    1313  <changelog> 
     14    *0.2.3.4* #2305 Feature Status broken 
    1415    *0.2.3.3* fixed some undefined variables, bump for rc1 
    1516    *0.2.3.2* #2177: removed apparently corrupted newline at end of file 
  • modules/branches/2.3/miscapps/page.miscapps.php

    r4678 r4921  
    3535  break; 
    3636  case 'edit': 
    37     miscapps_edit($miscapp_id, $description, $ext, $dest); 
     37    miscapps_edit($miscapp_id, $description, $ext, $dest, $enabled); 
    3838    needreload(); 
    3939    redirect_standard('extdisplay'); 
     
    9898    <td><a href="#" class="info"><?php echo _("Feature Status")?>:<span><?php echo _("If this code is enabled or not.")?></span></a></td> 
    9999    <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> 
    102102    </select></td> 
    103103  </tr>