Dotclear


Ignore:
Timestamp:
10/01/13 16:39:40 (12 years ago)
Author:
Dsls
Branch:
default
Message:
  • Removed superfluous space in addNotice
  • Non-repeatable notifications, step 2 : blogs and categories
  • Fixed blogs breadcrumb

see #1710

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r2166 r2189  
    5353     $core->blog->settings->system->put('theme',$_POST['theme']); 
    5454     $core->blog->triggerBlog(); 
    55      http::redirect('blog_theme.php?upd=1'); 
     55     $theme = $core->themes->getModules($_POST['theme']); 
     56     dcPage::addSuccessNotice(sprintf( 
     57          __('Current theme has been successfully changed to "%s".'), 
     58          __('Current theme has been successfully changed to "%s".'), 
     59          html::escapeHTML($theme['name'])) 
     60     ); 
     61 
     62     http::redirect('blog_theme.php'); 
    5663} 
    5764 
     
    7885          $core->callBehavior('themeAfterDelete',$theme); 
    7986           
    80           http::redirect('blog_theme.php?del=1'); 
     87          http::redirect('blog_theme.php'); 
    8188     } 
    8289     catch (Exception $e) 
     
    128135           
    129136          $ret_code = dcModules::installPackage($dest,$core->themes); 
    130           http::redirect('blog_theme.php?added='.$ret_code); 
     137          if ($ret_code == 2) { 
     138               dcPage::addSuccessNotice(__('Theme has been successfully upgraded.')); 
     139          } else { 
     140               dcPage::addSuccessNotice(__('Theme has been successfully installed.')); 
     141          } 
     142          http::redirect('blog_theme.php'); 
    131143     } 
    132144     catch (Exception $e) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map