Whitespace updates (including leading tabs to spaces).
Fixed i18n.
This commit is contained in:
parent
700b46317a
commit
4b0dd8384f
|
@ -51,7 +51,6 @@ class RealtimePlugin extends Plugin
|
||||||
* When it's time to initialize the plugin, calculate and
|
* When it's time to initialize the plugin, calculate and
|
||||||
* pass the URLs we need.
|
* pass the URLs we need.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onInitializePlugin()
|
function onInitializePlugin()
|
||||||
{
|
{
|
||||||
// FIXME: need to find a better way to pass this pattern in
|
// FIXME: need to find a better way to pass this pattern in
|
||||||
|
@ -367,12 +366,11 @@ class RealtimePlugin extends Plugin
|
||||||
$convurl = $conv->uri;
|
$convurl = $conv->uri;
|
||||||
|
|
||||||
if(empty($convurl)) {
|
if(empty($convurl)) {
|
||||||
$msg = sprintf(
|
$msg = sprintf( _m("Could not find Conversation ID %d to make 'in context'"
|
||||||
"Couldn't find Conversation ID %d to make 'in context'"
|
. "link for Notice ID %d.",
|
||||||
. "link for Notice ID %d",
|
|
||||||
$notice->conversation,
|
$notice->conversation,
|
||||||
$notice->id
|
$notice->id
|
||||||
);
|
));
|
||||||
|
|
||||||
common_log(LOG_WARNING, $msg);
|
common_log(LOG_WARNING, $msg);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -46,7 +46,6 @@ if (!defined('STATUSNET')) {
|
||||||
*
|
*
|
||||||
* @see DB_DataObject
|
* @see DB_DataObject
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Realtime_channel extends Managed_DataObject
|
class Realtime_channel extends Managed_DataObject
|
||||||
{
|
{
|
||||||
const TIMEOUT = 1800; // 30 minutes
|
const TIMEOUT = 1800; // 30 minutes
|
||||||
|
@ -71,7 +70,6 @@ class Realtime_channel extends Managed_DataObject
|
||||||
* @param mixed $v Value to lookup
|
* @param mixed $v Value to lookup
|
||||||
*
|
*
|
||||||
* @return Realtime_channel object found, or null for no hits
|
* @return Realtime_channel object found, or null for no hits
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
function staticGet($k, $v=null)
|
function staticGet($k, $v=null)
|
||||||
{
|
{
|
||||||
|
@ -84,7 +82,6 @@ class Realtime_channel extends Managed_DataObject
|
||||||
* @param array $kv array of key-value mappings
|
* @param array $kv array of key-value mappings
|
||||||
*
|
*
|
||||||
* @return Realtime_channel object found, or null for no hits
|
* @return Realtime_channel object found, or null for no hits
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
function pkeyGet($kv)
|
function pkeyGet($kv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
|
||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ClosechannelAction extends Action
|
class ClosechannelAction extends Action
|
||||||
{
|
{
|
||||||
protected $channelKey = null;
|
protected $channelKey = null;
|
||||||
|
@ -57,7 +56,6 @@ class ClosechannelAction extends Action
|
||||||
*
|
*
|
||||||
* @return boolean true
|
* @return boolean true
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function prepare($argarray)
|
function prepare($argarray)
|
||||||
{
|
{
|
||||||
parent::prepare($argarray);
|
parent::prepare($argarray);
|
||||||
|
@ -88,7 +86,6 @@ class ClosechannelAction extends Action
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function handle($argarray=null)
|
function handle($argarray=null)
|
||||||
{
|
{
|
||||||
$this->channel->decrement();
|
$this->channel->decrement();
|
||||||
|
@ -107,7 +104,6 @@ class ClosechannelAction extends Action
|
||||||
*
|
*
|
||||||
* @return boolean is read only action?
|
* @return boolean is read only action?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function isReadOnly($args)
|
function isReadOnly($args)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user