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

        Patch by liv. 

diffs (28 lines):

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 ()
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to