Changeset 2256:d3c3fa1723ab for plugins/blogroll/edit.php
- Timestamp:
- 10/04/13 15:00:41 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blogroll/edit.php
r2166 r2256 68 68 try { 69 69 $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); 71 72 } catch (Exception $e) { 72 73 $core->error->add($e->getMessage()); … … 82 83 try { 83 84 $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); 85 87 } catch (Exception $e) { 86 88 $core->error->add($e->getMessage()); … … 100 102 html::escapeHTML($core->blog->name) => '', 101 103 __('Blogroll') => $p_url 102 )); 104 )). 105 dcPage::notices(); 103 106 ?> 104 107 … … 108 111 if (isset($rs) && $rs->is_cat) 109 112 { 110 if (!empty($_GET['upd'])) {111 dcPage::success(__('Category has been successfully updated'));112 }113 114 113 echo 115 114 '<form action="'.$p_url.'" method="post">'. … … 127 126 if (isset($rs) && !$rs->is_cat) 128 127 { 129 if (!empty($_GET['upd'])) { 130 dcPage::success(__('Link has been successfully updated')); 131 } 132 128 133 129 echo 134 130 '<form action="plugin.php" method="post" class="two-cols fieldset">'.
Note: See TracChangeset
for help on using the changeset viewer.