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)

Location:
plugins/tags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_admin.php

    r2234 r2256  
    140140                    } 
    141141               } 
    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); 
    143150          }  
    144151          else  
     
    205212                    } 
    206213               } 
    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); 
    208222          } 
    209223          else 
  • plugins/tags/tag_posts.php

    r2166 r2256  
    2626     try { 
    2727          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); 
    2930          } 
    3031     } catch (Exception $e) { 
     
    3839     try { 
    3940          $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'); 
    4143     } catch (Exception $e) { 
    4244          $core->error->add($e->getMessage()); 
     
    9294          __('Tags') => $p_url.'&m=tags', 
    9395          __('Tag').' “'.html::escapeHTML($tag).'”' => '' 
    94      )); 
     96     )). 
     97     dcPage::notices(); 
    9598?> 
    9699 
    97100<?php 
    98 if (!empty($_GET['renamed'])) { 
    99      dcPage::success(__('Tag has been successfully renamed')); 
    100 } 
    101  
    102101echo '<p><a class="back" href="'.$p_url.'&amp;m=tags">'.__('Back to tags list').'</a></p>'; 
    103102 
  • plugins/tags/tags.php

    r2166 r2256  
    2525          html::escapeHTML($core->blog->name) => '', 
    2626          __('Tags') => '' 
    27      )); 
     27     )). 
     28     dcPage::notices(); 
    2829?> 
    2930 
    3031<?php 
    31 if (!empty($_GET['del'])) { 
    32      dcPage::message(__('Tag has been successfully removed')); 
    33 } 
    3432 
    3533$tags = $core->meta->getMetadata(array('meta_type' => 'tag')); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map