Changeset 2189:eda746478da6 for inc/admin
- Timestamp:
- 10/01/13 16:39:40 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r2181 r2189 177 177 178 178 if (isset($_SESSION['notifications'])) { 179 $types = array("success" => "success", "warning" => "warning-msg" );179 $types = array("success" => "success", "warning" => "warning-msg", "error" => "error"); 180 180 $notifications = $_SESSION['notifications']; 181 181 foreach ($types as $type => $class) { … … 201 201 self::addNotice("warning",$message); 202 202 } 203 203 public static function addErrorNotice($message) { 204 self::addNotice("error",$message); 205 } 204 206 protected static function getNotification($msg,$class) { 205 207 global $core; 206 208 $res = '<p class="'.$class.'">'. 207 dt::str(__('[%H:%M:%S] 209 dt::str(__('[%H:%M:%S]'),$msg['ts'],$core->auth->getInfo('user_tz')).' '.$msg['text']. 208 210 '</p>'; 209 211 return $res;
Note: See TracChangeset
for help on using the changeset viewer.