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

[dw-free] Use external stylesheets by default for official styles

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

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

Account for S1 core1 not having these functions.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
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 );
         }
--------------------------------------------------------------------------------
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2010-06-29 10:26 am (UTC)(link)
You mean core1, not S1. :)