summaryrefslogtreecommitdiff
path: root/lib/implugin.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-08-31 00:07:52 -0400
committerCraig Andrews <candrews@integralblue.com>2010-09-03 17:50:28 -0400
commit1eccd2a4bd16ec03527407faa5b87982ab212852 (patch)
treee31f59b316180b61e06f79e4394b070219f7b038 /lib/implugin.php
parentb4d02650dffc83b6c60cf5e30dcf93ac483b89aa (diff)
send_from_site -> sendFromSite
Diffstat (limited to 'lib/implugin.php')
-rw-r--r--lib/implugin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/implugin.php b/lib/implugin.php
index 385a1092d..65dc559f9 100644
--- a/lib/implugin.php
+++ b/lib/implugin.php
@@ -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;
}