From: Roland Haeder Date: Sat, 31 Jan 2015 16:50:11 +0000 (+0100) Subject: onEndShowStyles() only uses 'Action' as well. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6120bfdb6b9ad703b77615f10ef3aea2fabdf082;p=quix0rs-gnu-social.git onEndShowStyles() only uses 'Action' as well. Signed-off-by: Roland Haeder --- diff --git a/plugins/AccountManager/AccountManagerPlugin.php b/plugins/AccountManager/AccountManagerPlugin.php index 768f71510f..24a95395a3 100644 --- a/plugins/AccountManager/AccountManagerPlugin.php +++ b/plugins/AccountManager/AccountManagerPlugin.php @@ -61,7 +61,7 @@ class AccountManagerPlugin extends Plugin common_local_url('AccountManagementControlDocument')); } - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { //Account management discovery link header('Link: <'.common_local_url('AccountManagementControlDocument').'>; rel="'. AccountManagerPlugin::AM_REL.'"; type="application/json"'); diff --git a/plugins/ActivitySpam/ActivitySpamPlugin.php b/plugins/ActivitySpam/ActivitySpamPlugin.php index fe6b8f6cef..8d924dea97 100644 --- a/plugins/ActivitySpam/ActivitySpamPlugin.php +++ b/plugins/ActivitySpam/ActivitySpamPlugin.php @@ -191,7 +191,7 @@ class ActivitySpamPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->element('style', null, '.form-train-spam input.submit { background: url('.$this->path('icons/bullet_black.png').') no-repeat 0px 0px } ' . "\n" . diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index 7f2568b040..51e6ebac09 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -94,7 +94,7 @@ class BookmarkPlugin extends MicroAppPlugin * * @return boolean hook value */ - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/bookmark.css')); return true; diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 9f1abef498..3afab5f13b 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -296,7 +296,7 @@ class EventPlugin extends MicroAppPlugin $action->script($this->path('js/event.js')); } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/event.css')); return true; diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index 8e9451eb02..906509fef5 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -157,7 +157,7 @@ class GNUsocialPhotosPlugin extends Plugin _('Photo gallery'), $nav->action->trimmed('action') == 'photos', 'nav_photos'); } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink('/plugins/GNUsocialPhotos/res/style.css'); } diff --git a/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php b/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php index 87165a71d2..fcf7e87366 100644 --- a/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php +++ b/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php @@ -102,7 +102,7 @@ class GNUsocialProfileExtensionsPlugin extends Plugin } } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink('/plugins/GNUsocialProfileExtensions/res/style.css'); } diff --git a/plugins/Mobile/WAP20Plugin.php b/plugins/Mobile/WAP20Plugin.php index fc5008cda6..a48a32e9f1 100644 --- a/plugins/Mobile/WAP20Plugin.php +++ b/plugins/Mobile/WAP20Plugin.php @@ -43,7 +43,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { class WAP20Plugin extends Plugin { - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { } diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index c96491d9e9..9d7075a3a2 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -59,7 +59,7 @@ class MobileProfilePlugin extends WAP20Plugin parent::__construct(); } - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { // XXX: This should probably graduate to WAP20Plugin diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php index 0a673eb30f..64b254e418 100644 --- a/plugins/Poll/PollPlugin.php +++ b/plugins/Poll/PollPlugin.php @@ -77,7 +77,7 @@ class PollPlugin extends MicroAppPlugin * * @return boolean hook value */ - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/poll.css')); return true; diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php index 98bb80e68d..056d7a2582 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -445,7 +445,7 @@ class QnAPlugin extends MicroAppPlugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/qna.css')); return true; diff --git a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php index 3131847349..0ed0de4544 100644 --- a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php +++ b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php @@ -70,7 +70,7 @@ class SiteNoticeInSidebarPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->element('style', null, '#site_notice { width: 100% }'); return true; diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php index ae43b05d22..03d45e881f 100644 --- a/plugins/TinyMCE/TinyMCEPlugin.php +++ b/plugins/TinyMCE/TinyMCEPlugin.php @@ -68,7 +68,7 @@ class TinyMCEPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { if ($this->isAllowedRichEdit()) { $action->style('span#notice_data-text_container, span#notice_data-text_parent { float: left }'); diff --git a/plugins/WebFinger/WebFingerPlugin.php b/plugins/WebFinger/WebFingerPlugin.php index 5b7dc20d86..80da17dff6 100644 --- a/plugins/WebFinger/WebFingerPlugin.php +++ b/plugins/WebFinger/WebFingerPlugin.php @@ -125,7 +125,7 @@ class WebFingerPlugin extends Plugin /** * Add a link header for LRDD Discovery */ - public function onStartShowHTML($action) + public function onStartShowHTML(Action $action) { if ($action instanceof ShowstreamAction) { $acct = 'acct:'. $action->profile->nickname .'@'. common_config('site', 'server');