[packages/dokuwiki-plugin-pagequery] Fix fulltext includes for DokuWiki 2026; release 2
arekm
arekm at pld-linux.org
Wed Oct 21 19:51:52 CEST 2026
commit 0cc6655e251bb994a66febf5e3d7bf11d7176e02
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 21 19:51:36 2026 +0200
Fix fulltext includes for DokuWiki 2026; release 2
dokuwiki-fulltext.patch | 27 +++++++++++++++++++++++++++
dokuwiki-plugin-pagequery.spec | 4 +++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/dokuwiki-plugin-pagequery.spec b/dokuwiki-plugin-pagequery.spec
index d949005..3fdf659 100644
--- a/dokuwiki-plugin-pagequery.spec
+++ b/dokuwiki-plugin-pagequery.spec
@@ -3,11 +3,12 @@
Summary: DokuWiki plugin to search for and list pages, sorted by name, date, creator, etc
Name: dokuwiki-plugin-%{plugin}
Version: 20180122
-Release: 1
+Release: 2
License: GPL v2
Group: Applications/WWW
Source0: https://github.com/MrBertie/pagequery/tarball/master/%{plugin}-%{version}.tgz
# Source0-md5: 77fc93596880c4b2046e187bc8898536
+Patch0: dokuwiki-fulltext.patch
URL: http://www.dokuwiki.org/plugin:pagequery
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.553
@@ -31,6 +32,7 @@ in columns, with preview snippet.
%prep
%setup -qc
mv *-%{plugin}-*/* .
+%patch -P0 -p1
%undos *.txt
# using date from latest commit
diff --git a/dokuwiki-fulltext.patch b/dokuwiki-fulltext.patch
new file mode 100644
index 0000000..c9316af
--- /dev/null
+++ b/dokuwiki-fulltext.patch
@@ -0,0 +1,27 @@
+--- pagequery/syntax.php.orig
++++ pagequery/syntax.php
+@@ -14,7 +14,10 @@
+ if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+
+ require_once(DOKU_PLUGIN . 'syntax.php');
+-require_once(DOKU_INC . 'inc/fulltext.php');
++// DokuWiki 2026 moved ft_pageSearch() to its preloaded compatibility layer.
++if (!function_exists('ft_pageSearch')) {
++ require_once(DOKU_INC . 'inc/fulltext.php');
++}
+ require_once(DOKU_PLUGIN . 'pagequery/inc/pagequery.php');
+
+
+--- pagequery/inc/pagequery.php.orig
++++ pagequery/inc/pagequery.php
+@@ -1,6 +1,9 @@
+ <?php
+
+-require_once(DOKU_INC . 'inc/fulltext.php');
++// Older DokuWiki versions still need the fulltext functions loaded explicitly.
++if (!function_exists('ft_pageSearch')) {
++ require_once(DOKU_INC . 'inc/fulltext.php');
++}
+
+
+ class PageQuery {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-pagequery.git/commitdiff/0cc6655e251bb994a66febf5e3d7bf11d7176e02
More information about the pld-cvs-commit
mailing list