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/classic.php

    r1535 r1615  
    1111        <?php if ($first_page): ?> 
    1212                <a href="<?php echo str_replace('{page}', 1, $url) ?>">&lsaquo;&nbsp;<?php echo Kohana::lang('pagination.first') ?></a> 
    13         <?php endif; ?> 
     13        <?php endif ?> 
    1414 
    1515        <?php if ($previous_page): ?> 
    1616                <a href="<?php echo str_replace('{page}', $previous_page, $url) ?>">&lt;</a> 
    17         <?php endif; ?> 
     17        <?php endif ?> 
    1818         
    1919 
     
    2424                <?php else: ?> 
    2525                        <a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a> 
    26                 <?php endif; ?> 
     26                <?php endif ?> 
    2727                 
    28         <?php endfor; ?> 
     28        <?php endfor ?> 
    2929 
    3030 
    3131        <?php if ($next_page): ?> 
    3232                <a href="<?php echo str_replace('{page}', $next_page, $url) ?>">&gt;</a> 
    33         <?php endif; ?> 
     33        <?php endif ?> 
    3434 
    3535        <?php if ($last_page): ?> 
    3636                <a href="<?php echo str_replace('{page}', $last_page, $url) ?>"><?php echo Kohana::lang('pagination.last') ?>&nbsp;&rsaquo;</a> 
    37         <?php endif; ?> 
     37        <?php endif ?> 
    3838 
    3939</p>