Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add vars, prep for update

  • Loading branch information...
commit 8a9504d7fe9594d67c9a7d504e16aab1e1b57e32 1 parent 9c57eb2
@pudge pudge authored
Showing with 8 additions and 7 deletions.
  1. +6 −7 plugins/Admin/Admin/PopupTree.pm
  2. +2 −0  sql/mysql/upgrades
View
13 plugins/Admin/Admin/PopupTree.pm
@@ -76,13 +76,12 @@ sub getPopupTree {
for my $tid (map { $_->[0] }
sort { $a->[1] cmp $b->[1] }
map { [ $_, lc $tree->{$_}{textname} ] } keys %$tree) {
- next unless $tid && $tid < 10000; # just in case someone added a bad tid.
- # We also filter out tids 10000
- # Currently these are special tids in the
- # system that we don't want available in
- # the editor. Should probably make this
- # more configurable with a var or something
- # in the future.
+ next unless $tid && ( # just in case someone added a bad tid
+ # filter out product guide topics
+ $tid < ($constants->{product_guide_tid_lower_limit} || 10_000)
+ ||
+ $tid > ($constants->{product_guide_tid_upper_limit} || 20_000)
+ );
my $top = $tree->{$tid};
@{$topics{$tid}}{qw(value label height width image open)} = (
$tid, @{$top}{qw(textname height width image)},
View
2  sql/mysql/upgrades
@@ -2522,3 +2522,5 @@ INSERT INTO vars (name, value, description) VALUES ('gse_skip_count_if_no_min_st
ALTER TABLE topic_nexus_extras MODIFY COLUMN type ENUM('text', 'list') NOT NULL DEFAULT 'text';
+# End of T_2_5_0_25, Start of T_2_5_0_26 - 2004/09/09
+
Please sign in to comment.
Something went wrong with that request. Please try again.