Refactor the image url generation (for relative paths) to be a
function. Any background image passed to generate_backround_css() is
automatically checked, and any others can be manually checked with:
var string image_url = generate_image_url( $*image_property );
Patch by wyntarvox.
diffs (16 lines):
diff -r 8d97cc0a1f04 -r 5e8b455b9796
bin/upgrading/s2layers/sundaymorning/layout.s2
--- a/bin/upgrading/s2layers/sundaymorning/layout.s2 Fri Oct 02 08:16:48
2009 -0500
+++ b/bin/upgrading/s2layers/sundaymorning/layout.s2 Sat Oct 03 13:51:57
2009 +0000
@@ -173,12 +173,6 @@ set module_credit_section = "two";
set module_credit_section = "two";
set module_poweredby_section = "two";
set module_poweredby_order = 20;
-
-function prop_init {
- if ( $*image_background_page_url != "" and not
$*image_background_page_url->starts_with("http") ) {
- $*image_background_page_url = "$*STATDIR/$*image_background_page_url";
- }
-}
function Page::print()
{
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog