]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blame - plural.patch
- add plural.patch
[packages/dokuwiki-plugin-data.git] / plural.patch
CommitLineData
a898bf05
ER
1--- data/helper.php 2009-08-04 11:06:52.614221159 +0300
2+++ tmp/helper.php 2009-08-04 11:06:34.000000000 +0300
3@@ -148,10 +148,13 @@
4 * @returns array with key, type, ismulti, title
5 */
6 function _column($col){
7- if(strtolower(substr($col,-1)) == 's'){
8+ if (strtolower(substr($col,-2)) == 'es') {
9+ $col = substr($col,0,-2);
10+ $multi = true;
11+ } elseif (strtolower(substr($col,-1)) == 's') {
12 $col = substr($col,0,-1);
13 $multi = true;
14- }else{
15+ } else {
16 $multi = false;
17 }
18 list($key,$type) = explode('_',$col,2);
This page took 0.059312 seconds and 4 git commands to generate.