Changeset 4917
- Timestamp:
- 10/29/09 05:31:36 (4 weeks ago)
- Location:
- branches/greyhound
- Files:
-
- 3 modified
-
lib/MT/CMS/Theme.pm (modified) (2 diffs)
-
lib/MT/Theme.pm (modified) (2 diffs)
-
tmpl/cms/list_theme.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/greyhound/lib/MT/CMS/Theme.pm
r4869 r4917 53 53 $param{theme_uninstalled} = $q->param('theme_uninstalled'); 54 54 $param{uninstalled_theme_name} = $q->param('uninstalled_theme_name'); 55 $param{warning_on_apply} = $q->param('warning_on_apply'); 55 56 $app->load_tmpl( 'list_theme.tmpl', \%param ); 56 57 } … … 158 159 applied => 1, 159 160 blog_id => $blog->id, 161 warning_on_apply => $theme->{warning_on_apply}, 160 162 }, 161 163 ) -
branches/greyhound/lib/MT/Theme.pm
r4916 r4917 270 270 MT->run_callbacks('pre_apply_theme', $theme, $blog); 271 271 my $importer_filter = $opts{importer_filter}; 272 $theme->{warning_on_apply} = 0; 272 273 273 274 ## run all element handlers. … … 287 288 } 288 289 else { 290 $theme->{warning_on_apply} = 1; 289 291 require MT::Log; 290 292 my $log = MT::Log->new; -
branches/greyhound/tmpl/cms/list_theme.tmpl
r4862 r4917 20 20 rebuild="all"> 21 21 <__trans phrase="Theme [_1] has been applied." params="<mt:var name="current_theme_name">" escape="html"> 22 </mtapp:statusmsg> 23 </mt:if> 24 <mt:if name="warning_on_apply"> 25 <mtapp:statusmsg 26 id="theme_warning" 27 class="alert"> 28 <__trans phrase="Some error occured while applying theme."> <a href="<mt:var name="script_url">?__mode=view_log&blog_id=<mt:var name="blog_id">"><__trans phrase="see more detail."></a> 22 29 </mtapp:statusmsg> 23 30 </mt:if>
