Dotclear

Changeset 2191:f3ecd85d5c32


Ignore:
Timestamp:
10/01/13 20:36:42 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
2196:234c9e083cfb, 2197:293080a0c97e
Message:

Typo and minor adjustement

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r2189 r2191  
    5555     $theme = $core->themes->getModules($_POST['theme']); 
    5656     dcPage::addSuccessNotice(sprintf( 
    57           __('Current theme has been successfully changed to "%s".'), 
    5857          __('Current theme has been successfully changed to "%s".'), 
    5958          html::escapeHTML($theme['name'])) 
  • inc/admin/lib.dc.page.php

    r2189 r2191  
    175175               '</div>'; 
    176176          } 
    177            
     177 
    178178          if (isset($_SESSION['notifications'])) { 
    179179               $types = array("success" => "success", "warning" => "warning-msg", "error" => "error"); 
     
    188188               unset($_SESSION['notifications']); 
    189189          } 
    190            
    191      } 
    192      public static function AddNotice($type,$message) { 
    193           $notification = isset($_SESSION['notifications']) ? $_SESSION['notifications']:array(); 
     190     } 
     191 
     192     public static function AddNotice($type,$message) 
     193     { 
     194          $notification = isset($_SESSION['notifications']) ? $_SESSION['notifications'] : array(); 
    194195          $notification[$type][] = array('ts' => time(), 'text' => $message); 
    195196          $_SESSION['notifications'] = $notification; 
    196197     } 
    197      public static function addSuccessNotice($message) { 
     198 
     199     public static function addSuccessNotice($message) 
     200     { 
    198201          self::addNotice("success",$message); 
    199202     } 
    200      public static function addWarningNotice($message) { 
     203 
     204     public static function addWarningNotice($message) 
     205     { 
    201206          self::addNotice("warning",$message); 
    202207     } 
    203      public static function addErrorNotice($message) { 
     208 
     209     public static function addErrorNotice($message) 
     210     { 
    204211          self::addNotice("error",$message); 
    205      }     
    206      protected static function getNotification($msg,$class) { 
     212     } 
     213 
     214     protected static function getNotification($msg,$class) 
     215     { 
    207216          global $core; 
    208           $res = '<p class="'.$class.'">'. 
    209           dt::str(__('[%H:%M:%S]'),$msg['ts'],$core->auth->getInfo('user_tz')).' '.$msg['text']. 
    210           '</p>'; 
    211           return $res;    
    212      } 
     217 
     218          $res = '<p class="'.$class.'">'.dt::str(__('[%H:%M:%S]'),$msg['ts'],$core->auth->getInfo('user_tz')).' '.$msg['text'].'</p>'; 
     219          return $res; 
     220     } 
     221 
    213222     public static function close() 
    214223     { 
     
    370379          if ($msg != '') { 
    371380               $res = ($div ? '<div class="'.$class.'">' : '').'<p'.($div ? '' : ' class="'.$class.'"').'>'. 
    372                ($timestamp ? dt::str(__('%H:%M:%S:'),null,$core->auth->getInfo('user_tz')).' ' : '').$msg. 
     381               ($timestamp ? dt::str(__('[%H:%M:%S]'),null,$core->auth->getInfo('user_tz')).' ' : '').$msg. 
    373382               '</p>'.($div ? '</div>' : ''); 
    374383               if ($echo) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map