Dotclear


Ignore:
Timestamp:
10/25/12 14:55:54 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add timestamp on information message, fixes #1189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r888 r907  
    254254          "</div>\n".         // End of #wrapper 
    255255          '</body></html>'; 
     256     } 
     257 
     258     public static function message($msg,$timestamp=true,$div=false,$echo=true) 
     259     { 
     260          $res = ''; 
     261          if ($msg != '') { 
     262               $res = ($div ? '<div class="message">' : '').'<p'.($div ? '' : ' class="message"').'>'. 
     263                    ($timestamp ? dt::str(__('%H:%M:%S:')).' ' : '').$msg. 
     264                    '</p>'.($div ? '</div>' : ''); 
     265               if ($echo) { 
     266                    echo $res; 
     267               } 
     268          } 
     269          return $res; 
    256270     } 
    257271      
Note: See TracChangeset for help on using the changeset viewer.

Sites map