Account for S1 not having these functions.

        Patch by fu. 

diffs (16 lines):

diff -r 790c3b2ac7aa -r b8e59833de2e cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm  Tue Jun 29 17:46:05 2010 +0800
+++ b/cgi-bin/LJ/S2.pm  Tue Jun 29 18:27:35 2010 +0800
@@ -262,8 +262,10 @@ sub s2_run
     S2::Builtin::LJ::start_css($ctx) if $css_mode;
     eval {
         if ( ref $entry ) {
-            S2::run_code( $ctx, $_, $page )
-                foreach ( @$entry );
+            foreach ( @$entry ) {
+                S2::run_code( $ctx, $_, $page )
+                    if S2::function_exists( $ctx, $_ );
+            }
         } else {
             S2::run_code( $ctx, $entry, $page );
         }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to