Dotclear


Ignore:
Timestamp:
10/04/13 15:00:41 (12 years ago)
Author:
Dsls
Branch:
default
Message:

updated most of notices to new format, should fix #1710 (maintenance and daInstaller still to be updated)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/edit.php

    r2166 r2256  
    6868     try { 
    6969          $blogroll->updateLink($id,$link_title,$link_href,$link_desc,$link_lang,trim($link_xfn)); 
    70           http::redirect($p_url.'&edit=1&id='.$id.'&upd=1'); 
     70          dcPage::addSuccessNotice(__('Link has been successfully updated')); 
     71          http::redirect($p_url.'&edit=1&id='.$id); 
    7172     } catch (Exception $e) { 
    7273          $core->error->add($e->getMessage()); 
     
    8283     try { 
    8384          $blogroll->updateCategory($id,$link_desc); 
    84           http::redirect($p_url.'&edit=1&id='.$id.'&upd=1'); 
     85          dcPage::addSuccessNotice(__('Category has been successfully updated')); 
     86          http::redirect($p_url.'&edit=1&id='.$id); 
    8587     } catch (Exception $e) { 
    8688          $core->error->add($e->getMessage()); 
     
    100102               html::escapeHTML($core->blog->name) => '', 
    101103               __('Blogroll') => $p_url 
    102           )); 
     104          )). 
     105          dcPage::notices(); 
    103106?> 
    104107 
     
    108111if (isset($rs) && $rs->is_cat) 
    109112{ 
    110      if (!empty($_GET['upd'])) { 
    111           dcPage::success(__('Category has been successfully updated')); 
    112      } 
    113       
    114113     echo 
    115114     '<form action="'.$p_url.'" method="post">'. 
     
    127126if (isset($rs) && !$rs->is_cat) 
    128127{ 
    129      if (!empty($_GET['upd'])) { 
    130           dcPage::success(__('Link has been successfully updated')); 
    131      } 
    132       
     128 
    133129     echo 
    134130     '<form action="plugin.php" method="post" class="two-cols fieldset">'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map