]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
InfiniteScroll uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:23:39 +0000 (11:23 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:23:39 +0000 (11:23 -0500)
plugins/InfiniteScroll/InfiniteScrollPlugin.php

index 50c1b5a208582f3dc0a9cb56147723c7f2c674b4..b6c4fabba001bb259c9c215825bde56d9e26668e 100644 (file)
@@ -40,8 +40,8 @@ class InfiniteScrollPlugin extends Plugin
 
     function onEndShowScripts($action)
     {
-        $action->script('plugins/InfiniteScroll/jquery.infinitescroll.js');
-        $action->script('plugins/InfiniteScroll/infinitescroll.js');
+        $action->script($this->path('jquery.infinitescroll.js'));
+        $action->script($this->path('infinitescroll.js'));
     }
 
     function onPluginVersion(&$versions)