From: Craig Andrews Date: Wed, 5 Aug 2009 23:54:46 +0000 (-0400) Subject: Used script() function to write out the javascript link X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a9195ecd8eea36943dbb5e46adf685aef9edc4e;p=quix0rs-gnu-social.git Used script() function to write out the javascript link --- diff --git a/plugins/InfiniteScroll/InfiniteScrollPlugin.php b/plugins/InfiniteScroll/InfiniteScrollPlugin.php index 6738dc7608..7e942550ae 100644 --- a/plugins/InfiniteScroll/InfiniteScrollPlugin.php +++ b/plugins/InfiniteScroll/InfiniteScrollPlugin.php @@ -40,11 +40,7 @@ class InfiniteScrollPlugin extends Plugin function onEndShowScripts($action) { - $action->element('script', - array('type' => 'text/javascript', - 'src' => common_path('plugins/InfiniteScroll/jquery.infinitescroll.min.js')), - ''); - + $action->script('plugins/InfiniteScroll/jquery.infinitescroll.min.js'); $loading_image = common_path('plugins/InfiniteScroll/ajax-loader.gif'); $js_string = <<