Include the stylesheet in a cleaner way. (No functional difference, but
more obvious code)
Patch by fu.
diffs (19 lines):
diff -r ad5e8d864fd1 -r 07455d2fda20 bin/upgrading/s2layers/siteviews/layout.s2
--- a/bin/upgrading/s2layers/siteviews/layout.s2 Tue Jan 25 14:40:22
2011 +0800
+++ b/bin/upgrading/s2layers/siteviews/layout.s2 Tue Jan 25 16:34:45
2011 +0800
@@ -52,11 +52,11 @@ function IconsPage::print_title() {
$*SITEVIEWS->set_content("title",$this->view_title());
}
+function IconsPage::print_default_stylesheet() {
+ $*SITEVIEWS->need_res( "stc/allpics.css" );
+}
+
function IconsPage::print_body() {
- if ( $*SITEVIEWS ) {
- $*SITEVIEWS->need_res( "stc/allpics.css" );
- }
-
var int piccount = 0;
if ( size($.icons) == 0 ) {
"""<h1>$*text_icons_page_empty_header</h1><p>""";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog