addInlineScript() should use Horde::outputSent()
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Jul 2010 21:59:27 +0000 (15:59 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Jul 2010 22:15:39 +0000 (16:15 -0600)
framework/Core/lib/Horde.php

index ca24f39..e0aab04 100644 (file)
@@ -1832,7 +1832,7 @@ HTML;
 
         // If headers have already been sent, we need to output a
         // <script> tag directly.
-        if (ob_get_length() || headers_sent()) {
+        if (self::contentSent()) {
             self::outputInlineScript();
         }
     }