]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/DirectionDetector/DirectionDetectorPlugin.php
oEmbed had bad variable reference in error message
[quix0rs-gnu-social.git] / plugins / DirectionDetector / DirectionDetectorPlugin.php
index 561d38cd38f6fc0fbcee7ae9ecdc138b789233ba..1f77a61acc3897be4e3c6ca45d53a549ca3c2077 100644 (file)
@@ -37,6 +37,7 @@ class DirectionDetectorPlugin extends Plugin {
      * @param object $notice notice is going to be saved
      */
     public function onStartNoticeSave($notice){
+        // don't use getRendered() here since it's not saved yet and thus can't ->update in case that would happen
         if(!preg_match('/<span class="rtl">/', $notice->rendered) && self::isRTL($notice->content))
             $notice->rendered = '<span class="rtl">'.$notice->rendered.'</span>';
         return true;
@@ -245,7 +246,7 @@ class DirectionDetectorPlugin extends Plugin {
      * plugin details
      */
     function onPluginVersion(array &$versions){
-        $url = 'http://status.net/wiki/Plugin:DirectionDetector';
+        $url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/DirectionDetector';
 
         $versions[] = array(
             'name' => 'Direction detector',