Skip to content

Commit

Permalink
Add vars, prep for update
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Sep 9, 2004
1 parent 9c57eb2 commit 8a9504d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 6 additions & 7 deletions plugins/Admin/Admin/PopupTree.pm
Expand Up @@ -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)},
Expand Down
2 changes: 2 additions & 0 deletions sql/mysql/upgrades
Expand Up @@ -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

0 comments on commit 8a9504d

Please sign in to comment.