Changeset 1551

Show
Ignore:
Timestamp:
09/01/06 00:25:19 (2 years ago)
Author:
cfriesen
Message:

Show all channels when pruning items.

Location:
trunk/gregarius
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/items.php

    r1542 r1551  
    4848    . "</select></p>\n" 
    4949    . "<p>\n" 
    50         . rss_toolkit_channels_combo("prune_channel") . "\n" 
     50        . rss_toolkit_channels_combo("prune_channel", ALL_CHANNELS_ID, 0, true) . "\n" 
    5151    . "</p>\n" 
    5252    . "<p><label for=\"prune_include_sticky\">".LBL_ADMIN_PRUNE_INCLUDE_STICKY."</label>\n" 
  • trunk/gregarius/cls/wrappers/toolkit.php

    r1544 r1551  
    4747} 
    4848 
    49 function rss_toolkit_channels_combo($id, $all_channels_id = ALL_CHANNELS_ID, $selected = 0) { 
     49function rss_toolkit_channels_combo($id, $all_channels_id = ALL_CHANNELS_ID, $selected = 0, $showDeprecated = false) { 
    5050  $ret = "\t\t<select name=\"$id\" id=\"$id\">\n" 
    5151      ."\t\t\t<option value=\"". $all_channels_id ."\"" 
     
    6363  } 
    6464 
    65   $sql .=" and not(c.mode & " . RSS_MODE_DELETED_STATE .") "; 
     65  if(false == $showDeprecated) { 
     66      $sql .=" and not(c.mode & " . RSS_MODE_DELETED_STATE .") "; 
     67    } 
    6668 
    6769  $sql .= " order by "