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
  • admin/plugins.php

    r2166 r2256  
    6161                    $core->plugins->deleteModule($plugin_id,true); 
    6262               } 
    63                 
    64                http::redirect('plugins.php?removed=1'); 
     63 
     64               dcPage::addSuccessNotice(__('Plugin has been successfully deleted.')); 
     65               http::redirect('plugins.php'); 
    6566          } 
    6667          catch (Exception $e) 
     
    173174               # --BEHAVIOR-- pluginAfterAdd 
    174175               $core->callBehavior('pluginsAfterAdd', $plugin_id); 
    175                 
    176                http::redirect('plugins.php?added='.$ret_code); 
     176               if ($ret_code == 2) { 
     177                    dcPage::addSuccessNotice(__('Plugin has been successfully upgraded')); 
     178               } else { 
     179                    dcPage::addSuccessNotice(__('Plugin has been successfully installed.')); 
     180               } 
     181               http::redirect('plugins.php'); 
    177182          } 
    178183          catch (Exception $e) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map