]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blob - plural.patch
- add plural.patch
[packages/dokuwiki-plugin-data.git] / plural.patch
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.051452 seconds and 3 git commands to generate.