]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LinkPreview/LinkPreviewPlugin.php
Also for onEndShowScripts() 'Action' is the proper type-hint.
[quix0rs-gnu-social.git] / plugins / LinkPreview / LinkPreviewPlugin.php
index ecf7d07dd4061c93bafe1a7f0939ef5668305256..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')) {
@@ -66,11 +66,11 @@ class LinkPreviewPlugin extends Plugin
     /**
      * Hook for RouterInitialized event.
      *
-     * @param Net_URL_Mapper $m URL mapper
+     * @param URLMapper $m URL mapper
      *
      * @return boolean hook return
      */
-    function onStartInitializeRouter($m)
+    public function onStartInitializeRouter(URLMapper $m)
     {
         $m->connect('main/oembed/proxy',
                 array('action' => 'oembedproxy'));