[Slashdotjp-dev 1179] [706] * Add feature to change query string form name for search.pl

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 17日 (木) 20:31:24 JST


Revision: 706
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=706
Author:   tach
Date:     2008-07-17 20:31:23 +0900 (Thu, 17 Jul 2008)

Log Message:
-----------
 * Add feature to change query string form name for search.pl
   - Use variable "search_query_name"

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/sql/mysql/defaults.sql


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-17 07:04:45 UTC (rev 705)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-17 11:31:23 UTC (rev 706)
@@ -287,7 +287,7 @@
 		my %textinput = (
 			title		=> getData('search_header_title', {}, 'search'),
 			description	=> getData('search_header_descr', { section => $param->{skin} ? $param->{skin}{title} : undef }, 'search'),
-			name		=> 'q',
+			name		=> $constants->{search_query_name} || 'query',
 			'link'		=> $channel{'link'} . 'search.pl',
 		);
 

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-07-17 07:04:45 UTC (rev 705)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-07-17 11:31:23 UTC (rev 706)
@@ -21,8 +21,10 @@
   * Add feature: display pollBooth RSS on "/polls/rss"
   * Improve article.pl performance when non-user access
     - redirect to shtml internally
+  * Add feature to change query string form name for search.pl
+    - Use variable "search_query_name"
 
- -- Taku YASUI <tach****@osdn*****>  Thu, 17 Jul 2008 07:03:47 +0000
+ -- Taku YASUI <tach****@osdn*****>  Thu, 17 Jul 2008 11:29:47 +0000
 
 slash (2.5.0.192-15) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/sql/mysql/defaults.sql
===================================================================
--- slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-07-17 07:04:45 UTC (rev 705)
+++ slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-07-17 11:31:23 UTC (rev 706)
@@ -1154,6 +1154,7 @@
 INSERT IGNORE INTO vars (name, value, description) VALUES ('enable_template_evalperl','0','Add "EVAL_PERL" to Template option to be able to use "PERL" and "RAWPERL" directives');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('related_cid_disabled','0','If set, then disable inserting cid to related story list');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('modreasons_select_disabled','','Comma separated "modreasons.id"s disable to select when moderation');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('search_query_name','query','alternative query string form name for search.pl');
 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 メーリングリストの案内
Back to archive index