[Slashdotjp-dev 1459] [990] * Remove "Index" topic on topic list at story editing from submission

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2009年 2月 6日 (金) 13:40:09 JST


Revision: 990
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=990
Author:   tach
Date:     2009-02-06 13:40:09 +0900 (Fri, 06 Feb 2009)

Log Message:
-----------
 * Remove "Index" topic on topic list at story editing from submission
   using constants "submission_remove_mainpage_nexus_tid"

Modified Paths:
--------------
    slashjp/trunk/debian/changelog
    slashjp/trunk/plugins/Admin/admin.pl
    slashjp/trunk/sql/mysql/defaults.sql


-------------- next part --------------
Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-02-02 07:40:48 UTC (rev 989)
+++ slashjp/trunk/debian/changelog	2009-02-06 04:40:09 UTC (rev 990)
@@ -2,8 +2,10 @@
 
   * Fix to change discussion dkid for "journal-story"
     submissions/stories/journals.
+  * Remove "Index" topic on topic list at story editing from submission
+    using constants "submission_remove_mainpage_nexus_tid"
 
- -- Taku YASUI <tach****@osdn*****>  Mon,  2 Feb 2009 07:39:35 +0000
+ -- Taku YASUI <tach****@osdn*****>  Fri,  6 Feb 2009 04:39:49 +0000
 
 slash (2.5.0.233-4) unstable; urgency=low
 

Modified: slashjp/trunk/plugins/Admin/admin.pl
===================================================================
--- slashjp/trunk/plugins/Admin/admin.pl	2009-02-02 07:40:48 UTC (rev 989)
+++ slashjp/trunk/plugins/Admin/admin.pl	2009-02-06 04:40:09 UTC (rev 990)
@@ -1625,6 +1625,8 @@
 			push @topics, $nexus if $nexus;
 		}
 		for my $tid (@topics) {
+			# remove "Index" from topic list from submission for slashdot.jp (2009-02-06, tach)
+			next if ($constants->{submission_remove_mainpage_nexus_tid} && $tid == $constants->{mainpage_nexus_tid});
 			$chosen_hr->{$tid} =
 				$tid == $constants->{mainpage_nexus_tid}
 				? 30
@@ -1662,6 +1664,9 @@
 			$chosenc_hr = $chosen{stc};
 		}
 	}
+use Data::Dumper;
+print STDERR Dumper($chosen_hr);
+print STDERR Dumper($chosenc_hr);
 
 	# save the user's topic popup settings
 	if (exists $form->{st_saved_tree} || exists $form->{st_tree_pref}) {

Modified: slashjp/trunk/sql/mysql/defaults.sql
===================================================================
--- slashjp/trunk/sql/mysql/defaults.sql	2009-02-02 07:40:48 UTC (rev 989)
+++ slashjp/trunk/sql/mysql/defaults.sql	2009-02-06 04:40:09 UTC (rev 990)
@@ -1164,6 +1164,7 @@
 INSERT IGNORE INTO vars (name, value, description) VALUES ('mod_limit_not_m2able_reasons', '0', 'Enable moderation limit for not m2able reasons when it is not eligible');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('d2_default', '', 'Default discussion2 module name');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('firehose_tagged_by_uid', '0', 'Use as tagged_by_uid instead of uid for FireHose filter "user:username"');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('submission_remove_mainpage_nexus_tid', '0', 'Remove "Index" topic on topic list at story editing from submission');
 UPDATE vars SET value='text/html; charset=UTF-8' WHERE name='content_type_webpage';
 UPDATE vars SET value='0' WHERE name='draconian_charset';
 UPDATE vars SET value='UTF-8' WHERE name='rdfencoding';



Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index