Changeset 2256:d3c3fa1723ab for plugins/tags
- Timestamp:
- 10/04/13 15:00:41 (12 years ago)
- Branch:
- default
- Location:
- plugins/tags
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/tags/_admin.php
r2234 r2256 140 140 } 141 141 } 142 $ap->redirect(true,array('upd' => 1)); 142 dcPage::addSuccessNotice(sprintf( 143 __( 144 'Tag has been successfully added to selected entries', 145 'Tags have been successfully added to selected entries', 146 count($tags)) 147 ) 148 ); 149 $ap->redirect(true); 143 150 } 144 151 else … … 205 212 } 206 213 } 207 $ap->redirect(true,array('upd' => 1)); 214 dcPage::addSuccessNotice(sprintf( 215 __( 216 'Tag has been successfully removed from selected entries', 217 'Tags have been successfully removed from selected entries', 218 count($_POST['meta_id'])) 219 ) 220 ); 221 $ap->redirect(true); 208 222 } 209 223 else -
plugins/tags/tag_posts.php
r2166 r2256 26 26 try { 27 27 if ($core->meta->updateMeta($tag,$new_id,'tag')) { 28 http::redirect($p_url.'&m=tag_posts&tag='.$new_id.'&renamed=1'); 28 dcPage::addSuccessNotice(__('Tag has been successfully renamed')); 29 http::redirect($p_url.'&m=tag_posts&tag='.$new_id); 29 30 } 30 31 } catch (Exception $e) { … … 38 39 try { 39 40 $core->meta->delMeta($tag,'tag'); 40 http::redirect($p_url.'&m=tags&del=1'); 41 dcPage::addSuccessNotice(__('Tag has been successfully removed')); 42 http::redirect($p_url.'&m=tags'); 41 43 } catch (Exception $e) { 42 44 $core->error->add($e->getMessage()); … … 92 94 __('Tags') => $p_url.'&m=tags', 93 95 __('Tag').' “'.html::escapeHTML($tag).'”' => '' 94 )); 96 )). 97 dcPage::notices(); 95 98 ?> 96 99 97 100 <?php 98 if (!empty($_GET['renamed'])) {99 dcPage::success(__('Tag has been successfully renamed'));100 }101 102 101 echo '<p><a class="back" href="'.$p_url.'&m=tags">'.__('Back to tags list').'</a></p>'; 103 102 -
plugins/tags/tags.php
r2166 r2256 25 25 html::escapeHTML($core->blog->name) => '', 26 26 __('Tags') => '' 27 )); 27 )). 28 dcPage::notices(); 28 29 ?> 29 30 30 31 <?php 31 if (!empty($_GET['del'])) {32 dcPage::message(__('Tag has been successfully removed'));33 }34 32 35 33 $tags = $core->meta->getMetadata(array('meta_type' => 'tag'));
Note: See TracChangeset
for help on using the changeset viewer.