]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Also for onEndShowScripts() 'Action' is the proper type-hint.
authorRoland Haeder <roland@mxchange.org>
Sat, 31 Jan 2015 16:51:43 +0000 (17:51 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 31 Jan 2015 16:51:43 +0000 (17:51 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
22 files changed:
plugins/AnonymousFave/AnonymousFavePlugin.php
plugins/Autocomplete/AutocompletePlugin.php
plugins/Blog/BlogPlugin.php
plugins/Bookmark/BookmarkPlugin.php
plugins/ClientSideShorten/ClientSideShortenPlugin.php
plugins/DirectionDetector/DirectionDetectorPlugin.php
plugins/Event/EventPlugin.php
plugins/FacebookBridge/FacebookBridgePlugin.php
plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php
plugins/GoogleAnalytics/GoogleAnalyticsPlugin.php
plugins/InfiniteScroll/InfiniteScrollPlugin.php
plugins/LinkPreview/LinkPreviewPlugin.php
plugins/Mapstraction/MapstractionPlugin.php
plugins/MobileProfile/MobileProfilePlugin.php
plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php
plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php
plugins/QnA/QnAPlugin.php
plugins/Realtime/RealtimePlugin.php
plugins/Recaptcha/RecaptchaPlugin.php
plugins/TabFocus/TabFocusPlugin.php
plugins/TinyMCE/TinyMCEPlugin.php

index 841b6524012de81d5e2c72717bcbd900d78e9dc0..ef7a69381bd699ae6dd17a4a1b95eedfed4fdcb7 100644 (file)
@@ -93,7 +93,7 @@ class AnonymousFavePlugin extends Plugin
         }
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         // Setup ajax calls for favoriting. Usually this is only done when
         // a user is logged in.
index 380ab5a5dc58bc2d444ea791acb395b5a0ef37fd..0d3fdfc91dceab86f73c52ff39bddd96aef8021a 100644 (file)
@@ -39,7 +39,7 @@ class AutocompletePlugin extends Plugin
         parent::__construct();
     }
 
-    function onEndShowScripts($action){
+    function onEndShowScripts(Action $action){
         if (common_logged_in()) {
             $action->element('span', array('id' => 'autocomplete-api',
                                            'data-url' => common_local_url('autocomplete')));
index 5f377186fe717552ce7bb46633a993fdc7229dbc..723146221c13ebe561382e56385dc221f7580d99 100644 (file)
@@ -189,7 +189,7 @@ class BlogPlugin extends MicroAppPlugin
         return null;
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script(common_path('plugins/TinyMCE/js/jquery.tinymce.js'));
         $action->inlineScript('var _tinymce_path = "'.common_path('plugins/TinyMCE/js/tiny_mce.js').'";'."\n".
index 234e8accacfcd6578c4242e4ec81a63f26c993b7..8de736a527be569bdf175537c2993730dbf2c683 100644 (file)
@@ -100,7 +100,7 @@ class BookmarkPlugin extends MicroAppPlugin
         return true;
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script($this->path('js/bookmark.js'));
         return true;
index 94629a07b06bc6048c9e72e8da00339eb554950f..9dd3b1f5152157f2b94a2b8acdf2c103edbb94f6 100644 (file)
@@ -38,7 +38,7 @@ class ClientSideShortenPlugin extends Plugin
         parent::__construct();
     }
 
-    function onEndShowScripts($action){
+    function onEndShowScripts(Action $action){
         if (common_logged_in()) {
             $user = common_current_user();
             $action->inlineScript('var maxNoticeLength = ' . User_urlshortener_prefs::maxNoticeLength($user));
index 561d38cd38f6fc0fbcee7ae9ecdc138b789233ba..289196b4a9627a6d60e5176895b2bfae73a79ae7 100644 (file)
@@ -118,7 +118,7 @@ class DirectionDetectorPlugin extends Plugin {
      *
      * @param Action $action
      */
-    function onEndShowScripts($action){
+    function onEndShowScripts(Action $action){
         if (common_logged_in()) {
             $action->script($this->path('jquery.DirectionDetector.js'));
         }
index b64779fa77b2a69502f2418fc092f28f57df74c5..3afab5f13b1afaf0c2e34bc32dd71eedd88dfe3b 100644 (file)
@@ -291,7 +291,7 @@ class EventPlugin extends MicroAppPlugin
         }
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script($this->path('js/event.js'));
     }
index f6f519ed3461c2482e540e479aca1102e34b55df..9618eee31c38422a272a83216f8a60821df3d396 100644 (file)
@@ -329,7 +329,7 @@ class FacebookBridgePlugin extends Plugin
      * @param Action $action the current action
      *
      */
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         if ($this->needsScripts($action)) {
 
index 598af388fbefe7b77eeb9bcab51977c7febd292c..906509fef5d52573b1b07c53810bc7465ef0efde 100644 (file)
@@ -162,7 +162,7 @@ class GNUsocialPhotosPlugin extends Plugin
         $action->cssLink('/plugins/GNUsocialPhotos/res/style.css');
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script('plugins/GNUsocialPhotos/res/gnusocialphotos.js');
     }
index cf8eda17c942dac79262d88912609b861c662124..fcf7e87366fd4ef35663de0f2426561f3e666f75 100644 (file)
@@ -107,7 +107,7 @@ class GNUsocialProfileExtensionsPlugin extends Plugin
         $action->cssLink('/plugins/GNUsocialProfileExtensions/res/style.css');
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script('plugins/GNUsocialProfileExtensions/js/profile.js');
     }
index 1dc0f0f07a402ca6955a808bdd3c4a5d55d11fc1..2f07747a4d9d065369705e0c59919306bad259e4 100644 (file)
@@ -64,7 +64,7 @@ class GoogleAnalyticsPlugin extends Plugin
         parent::__construct();
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $code = common_config('googleanalytics', 'code');
         if (empty($code)) {
index 716a90dedf8ba485538be33b073247b6b70dbcca..713e9ef61ae3cf8c73fbc16979225b7a5ce90784 100644 (file)
@@ -41,7 +41,7 @@ class InfiniteScrollPlugin extends Plugin
         parent::__construct();
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->inlineScript('var infinite_scroll_on_next_only = ' . ($this->on_next_only?'true':'false') . ';');
         $action->inlineScript('var ajax_loader_url = "' . ($this->path('ajax-loader.gif')) . '";');
index 5edf66767d3715f3bb95f1c81bf32daadbde3f96..5e04d4d1546f10297642b019820956176307cd5c 100644 (file)
@@ -48,7 +48,7 @@ class LinkPreviewPlugin extends Plugin
      * @param Action $action
      * @return boolean hook result
      */
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $user = common_current_user();
         if ($user && common_config('attachments', 'process_links')) {
index c802fbfb917f2b3e00401708e68f6b3144892915..7356607ce248db2fe9f6efabcf0796478c9bfa4a 100644 (file)
@@ -83,7 +83,7 @@ class MapstractionPlugin extends Plugin
      *
      * @return boolean event handler return
      */
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $actionName = $action->trimmed('action');
 
index 145311d5b0efb7a098c9181af00b3cff04f7c221..2713f5b9349641b8aa6b4fc2052a3dd68d5c7232 100644 (file)
@@ -332,7 +332,7 @@ class MobileProfilePlugin extends WAP20Plugin
         }
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         // @todo FIXME: "Show Navigation" / "Hide Navigation" needs i18n
         $action->inlineScript('
index 06c75f7a930daee5b64ec3dd01f469a5d6f29b56..a597f829963ac4336874fae1d05628176171137a 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
  */
 class OpenExternalLinkTargetPlugin extends Plugin
 {
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->inlineScript('$(document).on("click", "a[rel~=external]:not([class~=attachment])", function () { window.open(this.href); return false; });');
 
index fa5894a8f5386e6750675878b4967c84cdbe598f..59ef822cb26c1cae6fbc6e03db21d7afd4526d92 100644 (file)
@@ -76,7 +76,7 @@ class PiwikAnalyticsPlugin extends Plugin
      *
      * @return boolean ignored
      */
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         // Slight modification to the default code.
         // Loading the piwik.js file from a <script> created in a document.write
index 8dcc0829224b6f0bd9b42ef85dd884addecbd634..056d7a2582dd24bc3444151dedafd0607259b2c0 100644 (file)
@@ -439,7 +439,7 @@ class QnAPlugin extends MicroAppPlugin
         }
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script($this->path('js/qna.js'));
         return true;
index d41f8eca425e57367999a0e2b05809ab9cee06ac..a348af2ef9a4a124ea9460868141c02293d55ee1 100644 (file)
@@ -85,7 +85,7 @@ class RealtimePlugin extends Plugin
         return true;
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $channel = $this->_getChannel($action);
 
index 48754ffab4309045b395cf3e56113835a86a49d1..c7c028858faf78f83b90f8effd9ef83b8e179fc4 100644 (file)
@@ -67,7 +67,7 @@ class RecaptchaPlugin extends Plugin
         return true;
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
             // Load the AJAX API
index df692988882d25a523bcadc9263d3577ff3c487a..4affc42c3f867bc94bdfda3bcbf2b80d7feed2c6 100644 (file)
@@ -39,7 +39,7 @@ class TabFocusPlugin extends Plugin
         parent::__construct();
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         $action->script($this->path('tabfocus.js'));
     }
index 8f6d52e11294a362a8e0325b099caf605c0b562f..03d45e881fbef5b1bd36d824645aed38b452cf3b 100644 (file)
@@ -58,7 +58,7 @@ class TinyMCEPlugin extends Plugin
     // "richedit" role get it.
     public $restricted = false;
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         if (common_logged_in() && $this->isAllowedRichEdit()) {
             $action->script(common_path('plugins/TinyMCE/js/jquery.tinymce.js'));