]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
send_from_site -> sendFromSite
authorCraig Andrews <candrews@integralblue.com>
Tue, 31 Aug 2010 04:07:52 +0000 (00:07 -0400)
committerCraig Andrews <candrews@integralblue.com>
Fri, 3 Sep 2010 21:50:28 +0000 (17:50 -0400)
lib/implugin.php
plugins/Irc/IrcPlugin.php

index 385a1092de5fe1cf6ecccbddfe6b9f9156698a7c..65dc559f93f86916b123d55e11f8c5e7e10815fd 100644 (file)
@@ -246,7 +246,7 @@ abstract class ImPlugin extends Plugin
      *
      * @param boolean success
      */
-    protected function send_from_site($screenname, $msg)
+    protected function sendFromSite($screenname, $msg)
     {
         $text = '['.common_config('site', 'name') . '] ' . $msg;
         $this->sendMessage($screenname, $text);
@@ -444,7 +444,7 @@ abstract class ImPlugin extends Plugin
         $_cur = $user;
 
         if (!$user) {
-            $this->send_from_site($from, 'Unknown user; go to ' .
+            $this->sendFromSite($from, 'Unknown user; go to ' .
                              common_local_url('imsettings') .
                              ' to add your address to your account');
             common_log(LOG_WARNING, 'Message from unknown user ' . $from);
@@ -486,7 +486,7 @@ abstract class ImPlugin extends Plugin
         $body = trim(strip_tags($body));
         $content_shortened = common_shorten_links($body);
         if (Notice::contentTooLong($content_shortened)) {
-          $this->send_from_site($screenname, sprintf(_('Message too long - maximum is %1$d characters, you sent %2$d.'),
+          $this->sendFromSite($screenname, sprintf(_('Message too long - maximum is %1$d characters, you sent %2$d.'),
                                           Notice::maxContent(),
                                           mb_strlen($content_shortened)));
           return;
@@ -496,7 +496,7 @@ abstract class ImPlugin extends Plugin
             $notice = Notice::saveNew($user->id, $content_shortened, $this->transport);
         } catch (Exception $e) {
             common_log(LOG_ERR, $e->getMessage());
-            $this->send_from_site($from, $e->getMessage());
+            $this->sendFromSite($from, $e->getMessage());
             return;
         }
 
index 87cd8f72cf8be4ac0a55cb8776963a39cfa8123a..f6aa09d5f22c88624a71b76f47b47e089d4cefdd 100644 (file)
@@ -235,7 +235,7 @@ class IrcPlugin extends ImPlugin {
         $_cur = $user;
 
         if (!$user) {
-            $this->send_from_site($nick, 'Unknown user; go to ' .
+            $this->sendFromSite($nick, 'Unknown user; go to ' .
                              common_local_url('imsettings') .
                              ' to add your address to your account');
             common_log(LOG_WARNING, 'Message from unknown user ' . $nick);