fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-09-21 09:18 am

[dw-free] Fix Core1 for backwards compatibility with layouts from LJ

[commit: http://hg.dwscoalition.org/dw-free/rev/1bb4e26a52fd]

http://bugs.dwscoalition.org/show_bug.cgi?id=3070

Add stub function, to avoid compile-time errors on imported layouts.

Patch by [personal profile] liv.

Files modified:
  • bin/upgrading/s2layers/core1.s2
--------------------------------------------------------------------------------
diff -r df531c62cb65 -r 1bb4e26a52fd bin/upgrading/s2layers/core1.s2
--- a/bin/upgrading/s2layers/core1.s2	Tue Sep 21 17:03:48 2010 +0800
+++ b/bin/upgrading/s2layers/core1.s2	Tue Sep 21 17:18:11 2010 +0800
@@ -195,9 +195,12 @@ class Link
 
     function print_button
     "Output this Link as a clickable button using [member[Link.icon]]";
-
+    
     function as_string() : string
     "Return the button HTML link.";
+    
+    function print_raw
+    "Blank function for backwards compatibility with LiveJournal";
 }
 
 class ItemRange
@@ -2682,6 +2685,10 @@ function Link::as_string() [fixed] : str
     return """<a href="$.url"><img border='0' width="$.icon.width" height="$.icon.height" alt="$ealt" title="$ealt" src="$.icon.url" $extraParams /></a>""";
 }
 
+function Link::print_raw() {
+# blank function so that LJ layouts will compile
+}
+
 # Redirector
 
 function Redirector::start_form ()
--------------------------------------------------------------------------------