Show
Ignore:
Timestamp:
12/26/2007 07:35:04 AM (13 months ago)
Author:
Geert
Message:
  • Database: fixed float related bug. Certain locales (nl_NL and probably many other European) display floats with a comma "," as decimal separator. This caused invalid SQL syntax, of course. The escape() function now converts floats to be non-locale aware.
  • Calendar: strftime() is locale aware, you don't even need a translation file for the months
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/pagination/digg.php

    r1535 r1615  
    1313        <?php else: ?> 
    1414                &laquo;&nbsp;<?php echo Kohana::lang('pagination.previous') ?> 
    15         <?php endif; ?> 
     15        <?php endif ?> 
    1616         
    1717 
     
    2323                        <?php else: ?> 
    2424                                <a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a> 
    25                         <?php endif; ?> 
    26                 <?php endfor; ?> 
     25                        <?php endif ?> 
     26                <?php endfor ?> 
    2727         
    2828        <?php elseif ($current_page < 9): /* « Previous  1 2 3 4 5 6 7 8 9 10 … 25 26  Next » */ ?> 
     
    3333                        <?php else: ?> 
    3434                                <a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a> 
    35                         <?php endif; ?> 
    36                 <?php endfor; ?> 
     35                        <?php endif ?> 
     36                <?php endfor ?> 
    3737         
    3838                &hellip; 
     
    5151                        <?php else: ?> 
    5252                                <a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a> 
    53                         <?php endif; ?> 
    54                 <?php endfor; ?> 
     53                        <?php endif ?> 
     54                <?php endfor ?> 
    5555         
    5656        <?php else: /* « Previous  1 2 … 5 6 7 8 9 10 11 12 13 14 … 25 26  Next » */ ?> 
     
    6565                        <?php else: ?> 
    6666                                <a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a> 
    67                         <?php endif; ?> 
    68                 <?php endfor; ?> 
     67                        <?php endif ?> 
     68                <?php endfor ?> 
    6969         
    7070                &hellip; 
     
    7272                <a href="<?php echo str_replace('{page}', $total_pages, $url) ?>"><?php echo $total_pages ?></a> 
    7373 
    74         <?php endif; ?> 
     74        <?php endif ?> 
    7575         
    7676         
     
    7979        <?php else: ?> 
    8080                <?php echo Kohana::lang('pagination.next') ?>&nbsp;&raquo; 
    81         <?php endif; ?> 
     81        <?php endif ?> 
    8282 
    8383</p>