Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default weight of 10 for newly added topics.

  • Loading branch information...
commit 01d638bff46bc60b0239d0ee4395d253ba617247 1 parent 9ea8482
@jamiemccarthy jamiemccarthy authored
View
1  plugins/Admin/dump
@@ -35,6 +35,7 @@ INSERT INTO vars (name, value, description) VALUES ('similarstorydays', '30', 'N
INSERT INTO vars (name, value, description) VALUES ('similarstorymaxwords', '30', 'Maximum number of top-weighted scores to search for in previous stories');
INSERT INTO vars (name, value, description) VALUES ('similarstoryminweight', '4', 'Minimum weight necessary for a story to be displayed as similar');
INSERT INTO vars (name, value, description) VALUES ('similarstorynumshow', '5', 'Maximum number of similar stories to show in admin preview');
+INSERT INTO vars (name, value, description) VALUES ('topic_popup_defaultweight', '10', 'Default weight for new topics in the popup menu (should probably match default for topic_parents.min_weight)');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw', '1', 'Draw the images/topic_tree.png?');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw_fontname', 'freefont/FreeMono', 'Name of font used for labels in the topic tree');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw_fontsize', '10', 'Size of font used for labels in the topic tree');
View
2  plugins/Admin/topic_tree_draw.pl
@@ -82,7 +82,7 @@
);
for my $ctid ( @{$topic->{children}} ) {
$g->add_edge($tid, $ctid,
- style => $topic->{child}{$ctid} >= 3 ? "dashed" : "solid",
+ style => $topic->{child}{$ctid} >= 30 ? "dashed" : "solid",
color => $hsv[ ($tid+$ctid) % @hsv ],
);
}
View
3  sql/mysql/upgrades
@@ -2402,3 +2402,6 @@ UPDATE topic_parents SET min_weight = min_weight * 10 WHERE min_weight <
UPDATE story_topics_chosen SET weight = weight * 10 WHERE weight < 10;
UPDATE story_topics_rendered SET weight = weight * 10 WHERE weight < 10;
+# Changes for plugins/Admin (which you are almost certainly using)
+INSERT INTO vars (name, value, description) VALUES ('topic_popup_defaultweight', '10', 'Default weight for new topics in the popup menu (should probably match default for topic_parents.min_weight)');
+
Please sign in to comment.
Something went wrong with that request. Please try again.