Changeset 2199:a11a22af9561
- Timestamp:
- 10/02/13 11:49:47 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r2191 r2199 176 176 } 177 177 178 // Display notices 179 echo self::notices(); 180 } 181 182 public static function notices() 183 { 184 // return notices if any 185 $res = ''; 178 186 if (isset($_SESSION['notifications'])) { 179 187 $types = array("success" => "success", "warning" => "warning-msg", "error" => "error"); … … 182 190 if (isset($notifications[$type])) { 183 191 foreach ($notifications[$type] as $n) { 184 echoself::getNotification($n,$class);192 $res .= self::getNotification($n,$class); 185 193 } 186 194 } … … 188 196 unset($_SESSION['notifications']); 189 197 } 190 } 191 192 public static function AddNotice($type,$message) 198 return $res; 199 } 200 201 public static function addNotice($type,$message) 193 202 { 194 203 $notification = isset($_SESSION['notifications']) ? $_SESSION['notifications'] : array();
Note: See TracChangeset
for help on using the changeset viewer.