]> git.pld-linux.org Git - packages/dokuwiki-plugin-pageredirect.git/commitdiff
- mute one php warning; rel 2 auto/th/dokuwiki-plugin-pageredirect-2-2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Aug 2010 14:32:58 +0000 (14:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-pageredirect.spec -> 1.7
    mute-warning.patch -> 1.1

dokuwiki-plugin-pageredirect.spec
mute-warning.patch [new file with mode: 0644]

index a5cc650c5410155ec27db96e9da14e948fa7f6f3..25580a2d2b1bda7ab17e112161afc1aedb8efa95 100644 (file)
@@ -3,14 +3,15 @@ Summary:      DokuWiki Page Redirect Plugin
 Summary(pl.UTF-8):     Wtyczka Page Redirect (przekierowywania stron) dla DokuWiki
 Name:          dokuwiki-plugin-%{plugin}
 Version:       2
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://wiki.zyberdog.dk/_media/php/dw/pageredirect/pageredirect_current.zip
 # Source0-md5: ee8fbe1f5686c43441e07e2dc4c82e37
 Source1:       dokuwiki-find-lang.sh
 Patch0:                %{name}-pagematch.patch
-URL:           http://wiki.splitbrain.org/plugin:page_redirector
+Patch1:                mute-warning.patch
+URL:           http://www.dokuwiki.org/plugin:page_redirector
 BuildRequires: unzip
 Requires:      dokuwiki >= 20061106
 BuildArch:     noarch
@@ -31,6 +32,7 @@ przestrzeniami nazw poprzez dodawanie określonych oznaczeń na stronie.
 %prep
 %setup -q -n %{plugin}
 %patch0 -p1
+%patch1 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/mute-warning.patch b/mute-warning.patch
new file mode 100644 (file)
index 0000000..812a1df
--- /dev/null
@@ -0,0 +1,13 @@
+--- pageredirect/action.php~   2007-01-24 14:36:36.000000000 +0200
++++ pageredirect/action.php    2010-08-24 17:30:13.450389203 +0300
+@@ -91,7 +91,9 @@
+       }
+       function handle_pageredirect_metadata(&$event, $param) { 
+-              unset($event->data->meta['relation']['isreplacedby']); 
++              if (isset($event->data->meta['relation'])) {
++                      unset($event->data->meta['relation']['isreplacedby']); 
++              }
+       }
+ }
This page took 0.058732 seconds and 4 git commands to generate.