Permalink
Browse files

url parameter on stylecatcher_theme works well so far.

  • Loading branch information...
1 parent 774d3f3 commit d4aed936bda48abce0d6bab9f43d9134e04c54db @comewalk committed Feb 26, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 plugins/StyleCatcher/lib/StyleCatcher/CMS.pm
  2. +1 −1 plugins/StyleCatcher/tmpl/view.tmpl
View
2 plugins/StyleCatcher/lib/StyleCatcher/CMS.pm
@@ -139,7 +139,7 @@ sub view {
blog_id => $blog_id,
themes_json =>
MT::Util::to_json( $theme_data, { pretty => 1, indent => 2 } ),
- auto_fetch => $url ? 1 : 0,
+ auto_fetch => $url ? $url : 0,
style_library => $stylelibrary,
current_theme => $blog_theme || '',
current_layout => $blog_layout || 'layout-wtt',
View
2 plugins/StyleCatcher/tmpl/view.tmpl
@@ -63,7 +63,7 @@
}
<mt:if name="auto_fetch">
- getStyles();
+ getStyles(null, '<mt:var name="auto_fetch" remove_html="1" encode_js="1">');
</mt:if>
}

0 comments on commit d4aed93

Please sign in to comment.