Changeset 4611


Ignore:
Timestamp:
08/29/10 19:35:13 (18 months ago)
Author:
vain
Message:
  • smarty modifier dateformat: fallback for dateformat no longer needed (set in application already)
  • minor comparison tweak to smarty viewhelper load_module
Location:
trunk/core/viewhelper/smarty
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/viewhelper/smarty/function.load_module.php

    r4578 r4611  
    6565 
    6666    # Load class, if not already loaded 
    67     if(class_exists($module_classname, false) == false) 
     67    if(class_exists($module_classname, false) === false) 
    6868    { 
    6969        # Check if class was loaded 
    70         if(Clansuite_Loader::loadModul($module_classname) == false) 
     70        if(Clansuite_Loader::loadModul($module_classname) === false) 
    7171        { 
    7272            return '<br/>Module missing or misspelled: <strong>' . $module_classname . '</strong>'; 
  • trunk/core/viewhelper/smarty/modifier.dateformat.php

    r4493 r4611  
    1919 * Example:  {$timestamp|date} 
    2020 
    21  * @version  1.0 
    2221 * @author   Jens-André Koch <jakoch@web.de> 
    2322 * @param string = has to be a unix timestamp 
     
    2625function smarty_modifier_dateformat($string) 
    2726{ 
    28     if (!defined('DATE_FORMAT')) 
    29     { 
    30         define('DATE_FORMAT', "d.m.Y H:i"); 
    31     } 
    32      
    3327    # it's a unix timestamp? 
    3428    if(mb_strlen($string) == 11)  
Note: See TracChangeset for help on using the changeset viewer.