forked from ports/contrib
pmwiki: added patch to fix division by zero bug
This commit is contained in:
parent
97711519d5
commit
bdb7fd7db4
@ -1 +1,2 @@
|
||||
909ecbce81827aa9b153161ca8a960b6 pmwiki-2.1.26.patch
|
||||
5bc04e195628f5c5f634b482f6c68c5a pmwiki-2.1.26.tgz
|
||||
|
@ -5,10 +5,12 @@
|
||||
|
||||
name=pmwiki
|
||||
version=2.1.26
|
||||
release=1
|
||||
source=(http://www.pmwiki.org/pub/$name/$name-$version.tgz)
|
||||
release=2
|
||||
source=(http://www.pmwiki.org/pub/$name/$name-$version.tgz \
|
||||
$name-$version.patch)
|
||||
|
||||
build () {
|
||||
(cd $name-$version; patch -p1 -i $SRC/$name-$version.patch)
|
||||
install -d $PKG/var/www/$name
|
||||
install -d -o nobody -m 700 $PKG/var/www/$name/{wiki.d,uploads}
|
||||
cp -R $name-$version/* $PKG/var/www/$name
|
||||
|
15
pmwiki/pmwiki-2.1.26.patch
Normal file
15
pmwiki/pmwiki-2.1.26.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -Nru pmwiki-2.1.26.orig/pmwiki.php pmwiki-2.1.26/pmwiki.php
|
||||
--- pmwiki-2.1.26.orig/pmwiki.php 2006-11-04 10:56:15.000000000 +0100
|
||||
+++ pmwiki-2.1.26/pmwiki.php 2006-11-04 10:55:42.000000000 +0100
|
||||
@@ -1097,7 +1097,10 @@
|
||||
if ($t=='caption') return "<:table,1>$y";
|
||||
if (@$MarkupFrame[0]['cs'][0] != 'table') $rowcount = 0; else $rowcount++;
|
||||
$FmtV['$TableRowCount'] = $rowcount + 1;
|
||||
- $FmtV['$TableRowIndex'] = ($rowcount % $TableRowIndexMax) + 1;
|
||||
+ if ($TableRowIndexMax > 0)
|
||||
+ $FmtV['$TableRowIndex'] = ($rowcount % $TableRowIndexMax) + 1;
|
||||
+ else
|
||||
+ $FmtV['$TableRowIndex'] = $rowcount + 1;
|
||||
$trattr = FmtPageName($TableRowAttrFmt, '');
|
||||
return "<:table,1><tr $trattr>$y</tr>";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user