Author: glen                         Date: Mon May 17 10:32:54 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- show current topic

---- Files affected:
packages/wpmu-plugin-blog-topics:
   wpmu-plugin-blog-topics.spec (1.2 -> 1.3) , current_topic.patch (NONE -> 
1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec
diff -u packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec:1.2 
packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec:1.3
--- packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec:1.2   Sun May 
16 16:14:46 2010
+++ packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec       Mon May 
17 12:32:48 2010
@@ -3,12 +3,13 @@
 Summary:       WordPressMU Blog Topics Plugin
 Name:          wpmu-plugin-%{plugin}
 Version:       1.0
-Release:       0.1
+Release:       0.2
 License:       GPL v2+
 Group:         Applications/Publishing
 Source0:       http://downloads.wordpress.org/plugin/blog-topics.zip
 # Source0-md5: 3bb901ee63ce4c623e33b55c9f6b504b
 URL:           http://wordpress.org/extend/plugins/blog-topics/
+Patch0:                current_topic.patch
 BuildRequires: rpmbuild(macros) >= 1.553
 BuildRequires: sed >= 4.0
 BuildRequires: unzip
@@ -19,7 +20,6 @@
 %define                wp_root         %{_datadir}/wpmu
 %define                wp_content      %{wp_root}/wp-content
 %define                pluginsdir      %{wp_content}/mu-plugins
-%define                _sysconfdir     /etc/webapps/wpmu
 
 %description
 This plugin creates site-wide topics. Each blog can be identified as
@@ -30,11 +30,12 @@
 
 %prep
 %setup -qn %{plugin}
-%undos readme.txt
+%undos readme.txt *.php
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{wp_content},%{pluginsdir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{wp_content},%{pluginsdir}}
 cp -a cets_blogtopics.php cets_blog_topics $RPM_BUILD_ROOT%{pluginsdir}
 
 %clean
@@ -52,6 +53,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/05/17 10:32:48  glen
+- show current topic
+
 Revision 1.2  2010/05/16 14:14:46  sparky
 - BR: unzip
 

================================================================
Index: packages/wpmu-plugin-blog-topics/current_topic.patch
diff -u /dev/null packages/wpmu-plugin-blog-topics/current_topic.patch:1.1
--- /dev/null   Mon May 17 12:32:54 2010
+++ packages/wpmu-plugin-blog-topics/current_topic.patch        Mon May 17 
12:32:48 2010
@@ -0,0 +1,9 @@
+--- blog-topics/cets_blogtopics.php~   2010-05-17 13:30:07.692017854 +0300
++++ blog-topics/cets_blogtopics.php    2010-05-17 13:30:07.699696433 +0300
+@@ -538,5 +538,5 @@
+       foreach ( $this->get_topics() as $topic )  {
+-              if ($id == $topic->id) {
++              if ($blog_topic == $topic->id) {
+                       $selected = "selected='selected'";
+               }
+                       echo "<option value='$topic->id' ". $selected .">" . 
$topic->topic_name ."</option>";
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/wpmu-plugin-blog-topics/wpmu-plugin-blog-topics.spec?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to