[Pkg-mediawiki-commits] r196 - in mediawiki-extensions/trunk/debian: . patches

Thorsten Glaser tg at alioth.debian.org
Wed Jun 30 13:44:51 UTC 2010


Author: tg
Date: 2010-06-30 13:44:50 +0000 (Wed, 30 Jun 2010)
New Revision: 196

Added:
   mediawiki-extensions/trunk/debian/patches/fix_newestpages.patch
Modified:
   mediawiki-extensions/trunk/debian/changelog
   mediawiki-extensions/trunk/debian/patches/series
Log:
another result of my testing


Modified: mediawiki-extensions/trunk/debian/changelog
===================================================================
--- mediawiki-extensions/trunk/debian/changelog	2010-06-30 12:21:06 UTC (rev 195)
+++ mediawiki-extensions/trunk/debian/changelog	2010-06-30 13:44:50 UTC (rev 196)
@@ -18,15 +18,15 @@
   * debian/copyright: add information for new extensions
   * Remove all mentions of SpecialLastUserLogin because
     it is not included (any more?) in the package
-  * Make buggy extensions (RSS_Reader, LanguageSelector) work
-    by patching
+  * Make buggy extensions (LanguageSelector, NewestPages,
+    RSS_Reader) work by patching
   * Replace embedded JQuery and JQueryUI code copies from
     Collection with links to the Debian packages thereof
   * Bump Standards-Version to 3.9.0.0
     - use Breaks instead of Conflicts (splitting package, §7.4)
   * Fix Lintian warnings
 
- -- Thorsten Glaser <tg at mirbsd.de>  Wed, 30 Jun 2010 12:11:05 +0000
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 30 Jun 2010 15:44:19 +0200
 
 mediawiki-extensions (2.2) unstable; urgency=high
 

Added: mediawiki-extensions/trunk/debian/patches/fix_newestpages.patch
===================================================================
--- mediawiki-extensions/trunk/debian/patches/fix_newestpages.patch	                        (rev 0)
+++ mediawiki-extensions/trunk/debian/patches/fix_newestpages.patch	2010-06-30 13:44:50 UTC (rev 196)
@@ -0,0 +1,19 @@
+$Id$
+
+Fix this for PostgreSQL version 7.2(!) and up… *and* correct
+the order of arguments in this statement… this can never have
+worked in the first place I think.
+
+Index: trunk/dist/mediawiki-extensions-base/usr/share/mediawiki-extensions/base/NewestPages/NewestPages.page.php
+===================================================================
+--- trunk/dist/mediawiki-extensions-base/usr/share/mediawiki-extensions/base/NewestPages/NewestPages.page.php	(revision 195)
++++ trunk/dist/mediawiki-extensions-base/usr/share/mediawiki-extensions/base/NewestPages/NewestPages.page.php	(working copy)
+@@ -33,7 +33,7 @@
+ 		$page = $dbr->tableName( 'page' );
+ 		$nsf = $this->getNsFragment();
+ 		$redir = $this->redirects ? '' : ' AND page_is_redirect = 0';
+-		$res = $dbr->query( "SELECT page_namespace, page_title, page_is_redirect FROM $page WHERE {$nsf}{$redir} ORDER BY page_id DESC LIMIT 0,{$this->limit}" );
++		$res = $dbr->query( "SELECT page_namespace, page_title, page_is_redirect FROM $page WHERE {$nsf}{$redir} ORDER BY page_id DESC LIMIT {$this->limit} OFFSET 0" );
+ 		$count = $dbr->numRows( $res );
+ 
+ 		# Don't show the navigation if we're including the page


Property changes on: mediawiki-extensions/trunk/debian/patches/fix_newestpages.patch
___________________________________________________________________
Added: svn:keywords
   + Author CVSHeader Date Id LastChangedBy LastChangedDate LastChangedRevision Log Revision Source State

Modified: mediawiki-extensions/trunk/debian/patches/series
===================================================================
--- mediawiki-extensions/trunk/debian/patches/series	2010-06-30 12:21:06 UTC (rev 195)
+++ mediawiki-extensions/trunk/debian/patches/series	2010-06-30 13:44:50 UTC (rev 196)
@@ -1,4 +1,5 @@
 fix_472283.patch
 fix_fckeditor.patch
 fix_languageselector.patch
+fix_newestpages.patch
 fix_rssreader.patch




More information about the Pkg-mediawiki-commits mailing list