]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:09:26 +0000 (11:09 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 16:09:26 +0000 (11:09 -0500)
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/classes/Ostatus_profile.php

index 59c18746f0d6892398d34d34d1798892307db64f..8e6e2d2891ace0722f28f57f64ef7875dd0759e8 100644 (file)
@@ -419,12 +419,12 @@ class OStatusPlugin extends Plugin
     }
 
     function onEndShowStatusNetStyles($action) {
-        $action->cssLink('plugins/OStatus/theme/base/css/ostatus.css');
+        $action->cssLink($this->path('theme/base/css/ostatus.css'));
         return true;
     }
 
     function onEndShowStatusNetScripts($action) {
-        $action->script('plugins/OStatus/js/ostatus.js');
+        $action->script($this->path('js/ostatus.js'));
         return true;
     }
 
index 303e177a5702ae02d7e195bc1f7ed0a877c67a5f..13711d39f4cd6314d7f09043d73c65d57ce0c0e3 100644 (file)
@@ -1112,7 +1112,8 @@ class Ostatus_profile extends Memcached_DataObject
                 return $url;
             }
         }
-        return common_path('plugins/OStatus/images/96px-Feed-icon.svg.png');
+
+        return Plugin::staticPath('OStatus', 'images/96px-Feed-icon.svg.png');
     }
 
     /**