[dw-free] Move /icons page into S2
[commit: http://hg.dwscoalition.org/dw-free/rev/07455d2fda20]
http://bugs.dwscoalition.org/show_bug.cgi?id=1446
Include the stylesheet in a cleaner way. (No functional difference, but more
obvious code)
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1446
Include the stylesheet in a cleaner way. (No functional difference, but more
obvious code)
Patch by
Files modified:
- bin/upgrading/s2layers/siteviews/layout.s2
--------------------------------------------------------------------------------
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>""";
--------------------------------------------------------------------------------
