Permalink
Browse files

In PHP, return should be followed by a variable.

  • Loading branch information...
1 parent 912985d commit cf2eab3431b45ded4e5b1bc6a221ed34581d587e @travib travib committed with Sep 25, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 Templating/Helper/TwitterAnywhereHelper.php
@@ -58,15 +58,17 @@ public function initialize()
foreach ($this->scripts as $script) {
$lines .= rtrim($script, ';').";\n";
}
-
- return <<<HTML
+
+ $html = <<<HTML
<script type="text/javascript">
/* <![CDATA[ */
twttr.anywhere(function(T) {
$lines})
/* ]]> */
</script>
HTML;
+
+ return $html;
}
public function getName()

0 comments on commit cf2eab3

Please sign in to comment.