X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FTabFocus%2FTabFocusPlugin.php;h=4affc42c3f867bc94bdfda3bcbf2b80d7feed2c6;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=46e329d8a4fc29c31a4dac642d9b9885af5e2791;hpb=696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34;p=quix0rs-gnu-social.git diff --git a/plugins/TabFocus/TabFocusPlugin.php b/plugins/TabFocus/TabFocusPlugin.php index 46e329d8a4..4affc42c3f 100644 --- a/plugins/TabFocus/TabFocusPlugin.php +++ b/plugins/TabFocus/TabFocusPlugin.php @@ -39,19 +39,20 @@ class TabFocusPlugin extends Plugin parent::__construct(); } - function onEndShowScripts($action) + function onEndShowScripts(Action $action) { - $action->script('plugins/TabFocus/tabfocus.js'); + $action->script($this->path('tabfocus.js')); } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'TabFocus', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews and Paul Irish', 'homepage' => 'http://status.net/wiki/Plugin:TabFocus', 'rawdescription' => - _m('TabFocus changes the notice form behavior so that, while in the text area, pressing the tab key focuses the "Send" button, matching the behavor of Twitter.')); + // TRANS: Plugin description. + _m('TabFocus changes the notice form behavior so that, while in the text area, pressing the tab key focuses the "Send" button, matching the behavior of Twitter.')); return true; } }