forked from GNUsocial/gnu-social
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
This commit is contained in:
commit
402c0654ea
@ -103,6 +103,7 @@ class CacheLogPlugin extends Plugin
|
|||||||
'author' => 'Evan Prodromou',
|
'author' => 'Evan Prodromou',
|
||||||
'homepage' => 'http://status.net/wiki/Plugin:CacheLog',
|
'homepage' => 'http://status.net/wiki/Plugin:CacheLog',
|
||||||
'description' =>
|
'description' =>
|
||||||
|
// TRANS: Plugin description.
|
||||||
_m('Log reads and writes to the cache.'));
|
_m('Log reads and writes to the cache.'));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -125,12 +125,15 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
|
|||||||
function onInitializePlugin(){
|
function onInitializePlugin(){
|
||||||
parent::onInitializePlugin();
|
parent::onInitializePlugin();
|
||||||
if(!isset($this->server)){
|
if(!isset($this->server)){
|
||||||
|
// TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
|
||||||
throw new Exception(_m("Specifying a server is required."));
|
throw new Exception(_m("Specifying a server is required."));
|
||||||
}
|
}
|
||||||
if(!isset($this->port)){
|
if(!isset($this->port)){
|
||||||
|
// TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
|
||||||
throw new Exception(_m("Specifying a port is required."));
|
throw new Exception(_m("Specifying a port is required."));
|
||||||
}
|
}
|
||||||
if(!isset($this->path)){
|
if(!isset($this->path)){
|
||||||
|
// TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
|
||||||
throw new Exception(_m("Specifying a path is required."));
|
throw new Exception(_m("Specifying a path is required."));
|
||||||
}
|
}
|
||||||
//These values need to be accessible to a action object
|
//These values need to be accessible to a action object
|
||||||
|
@ -25,6 +25,7 @@ class CasloginAction extends Action
|
|||||||
{
|
{
|
||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
if (common_is_real_login()) {
|
if (common_is_real_login()) {
|
||||||
|
// TRANS: Client error displayed when trying to log in while already logged on.
|
||||||
$this->clientError(_m('Already logged in.'));
|
$this->clientError(_m('Already logged in.'));
|
||||||
} else {
|
} else {
|
||||||
global $casSettings;
|
global $casSettings;
|
||||||
@ -36,12 +37,14 @@ class CasloginAction extends Action
|
|||||||
$casTempPassword = common_good_rand(16);
|
$casTempPassword = common_good_rand(16);
|
||||||
$user = common_check_user(phpCAS::getUser(), $casTempPassword);
|
$user = common_check_user(phpCAS::getUser(), $casTempPassword);
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
|
// TRANS: Server error displayed when trying to log in with incorrect username or password.
|
||||||
$this->serverError(_m('Incorrect username or password.'));
|
$this->serverError(_m('Incorrect username or password.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// success!
|
// success!
|
||||||
if (!common_set_user($user)) {
|
if (!common_set_user($user)) {
|
||||||
|
// TRANS: Server error displayed when login fails in CAS authentication plugin.
|
||||||
$this->serverError(_m('Error setting user. You are probably not authorized.'));
|
$this->serverError(_m('Error setting user. You are probably not authorized.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ class ClientSideShortenPlugin extends Plugin
|
|||||||
'author' => 'Craig Andrews',
|
'author' => 'Craig Andrews',
|
||||||
'homepage' => 'http://status.net/wiki/Plugin:ClientSideShorten',
|
'homepage' => 'http://status.net/wiki/Plugin:ClientSideShorten',
|
||||||
'rawdescription' =>
|
'rawdescription' =>
|
||||||
|
// TRANS: Plugin description.
|
||||||
_m('ClientSideShorten causes the web interface\'s notice form to automatically shorten URLs as they entered, and before the notice is submitted.'));
|
_m('ClientSideShorten causes the web interface\'s notice form to automatically shorten URLs as they entered, and before the notice is submitted.'));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
ClientSideShorten causes the web interface's notice form to automatically shorten urls as they entered, and before the notice is submitted.
|
ClientSideShorten causes the web interface's notice form to automatically
|
||||||
|
shorten URLs as they entered, and before the notice is submitted.
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
============
|
============
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
function delayed () {
|
function delayed () {
|
||||||
if (!execAsap)
|
if (!execAsap)
|
||||||
func.apply(obj, args);
|
func.apply(obj, args);
|
||||||
timeout = null;
|
timeout = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (timeout)
|
if (timeout)
|
||||||
@ -24,7 +24,7 @@
|
|||||||
else if (execAsap)
|
else if (execAsap)
|
||||||
func.apply(obj, args);
|
func.apply(obj, args);
|
||||||
|
|
||||||
timeout = setTimeout(delayed, threshold || 100);
|
timeout = setTimeout(delayed, threshold || 100);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
jQuery.fn[sr] = function(fn){ return fn ? this.bind('keypress', debounce(fn, 1000)) : this.trigger(sr); };
|
jQuery.fn[sr] = function(fn){ return fn ? this.bind('keypress', debounce(fn, 1000)) : this.trigger(sr); };
|
||||||
|
@ -52,7 +52,8 @@ class ShortenAction extends Action
|
|||||||
$this->users=array();
|
$this->users=array();
|
||||||
$this->text = $this->arg('text');
|
$this->text = $this->arg('text');
|
||||||
if(is_null($this->text)){
|
if(is_null($this->text)){
|
||||||
throw new ClientException(_m('\'text\' argument must be specified.'));
|
// TRANS: Client exception thrown when a text argument is not present.
|
||||||
|
throw new ClientException(_m('"text" argument must be specified.'));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Phomet: a php comet client
|
* Phomet: a php comet client
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008 Morgan 'ARR!' Allen <morganrallen@gmail.com> http://morglog.alleycatracing.com
|
* Copyright (C) 2008 Morgan 'ARR!' Allen <morganrallen@gmail.com> http://morglog.alleycatracing.com
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
// update the local timeline from a Comet server
|
// update the local timeline from a Comet server
|
||||||
//
|
|
||||||
|
|
||||||
var CometUpdate = function()
|
var CometUpdate = function()
|
||||||
{
|
{
|
||||||
var _server;
|
var _server;
|
||||||
@ -27,4 +25,3 @@ var CometUpdate = function()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
@ -261,6 +261,7 @@ class DirectionDetectorPlugin extends Plugin {
|
|||||||
'version' => DIRECTIONDETECTORPLUGIN_VERSION,
|
'version' => DIRECTIONDETECTORPLUGIN_VERSION,
|
||||||
'author' => 'Behrooz Shabani',
|
'author' => 'Behrooz Shabani',
|
||||||
'homepage' => $url,
|
'homepage' => $url,
|
||||||
|
// TRANS: Plugin description.
|
||||||
'rawdescription' => _m('Shows notices with right-to-left content in correct direction.')
|
'rawdescription' => _m('Shows notices with right-to-left content in correct direction.')
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
|
@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
|
|||||||
*/
|
*/
|
||||||
class DirectoryPlugin extends Plugin
|
class DirectoryPlugin extends Plugin
|
||||||
{
|
{
|
||||||
|
|
||||||
private $dir = null;
|
private $dir = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -165,8 +164,10 @@ class DirectoryPlugin extends Plugin
|
|||||||
|
|
||||||
$nav->out->menuItem(
|
$nav->out->menuItem(
|
||||||
common_local_url('userdirectory'),
|
common_local_url('userdirectory'),
|
||||||
_m('Directory'),
|
// TRANS: Menu item text for user directory.
|
||||||
_m('User Directory'),
|
_m('MENU','Directory'),
|
||||||
|
// TRANS: Menu item title for user directory.
|
||||||
|
_m('User Directory.'),
|
||||||
$actionName == 'userdirectory',
|
$actionName == 'userdirectory',
|
||||||
'nav_directory'
|
'nav_directory'
|
||||||
);
|
);
|
||||||
@ -184,6 +185,7 @@ class DirectoryPlugin extends Plugin
|
|||||||
'version' => STATUSNET_VERSION,
|
'version' => STATUSNET_VERSION,
|
||||||
'author' => 'Zach Copley',
|
'author' => 'Zach Copley',
|
||||||
'homepage' => 'http://status.net/wiki/Plugin:Directory',
|
'homepage' => 'http://status.net/wiki/Plugin:Directory',
|
||||||
|
// TRANS: Plugin description.
|
||||||
'rawdescription' => _m('Add a user directory.')
|
'rawdescription' => _m('Add a user directory.')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
|
|||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DiskCachePlugin extends Plugin
|
class DiskCachePlugin extends Plugin
|
||||||
{
|
{
|
||||||
var $root = '/tmp';
|
var $root = '/tmp';
|
||||||
@ -64,7 +63,6 @@ class DiskCachePlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @return boolean hook success
|
* @return boolean hook success
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onStartCacheGet(&$key, &$value)
|
function onStartCacheGet(&$key, &$value)
|
||||||
{
|
{
|
||||||
$filename = $this->keyToFilename($key);
|
$filename = $this->keyToFilename($key);
|
||||||
@ -91,7 +89,6 @@ class DiskCachePlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @return boolean hook success
|
* @return boolean hook success
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
|
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
|
||||||
{
|
{
|
||||||
$filename = $this->keyToFilename($key);
|
$filename = $this->keyToFilename($key);
|
||||||
@ -152,7 +149,6 @@ class DiskCachePlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @return boolean hook success
|
* @return boolean hook success
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onStartCacheDelete(&$key, &$success)
|
function onStartCacheDelete(&$key, &$success)
|
||||||
{
|
{
|
||||||
$filename = $this->keyToFilename($key);
|
$filename = $this->keyToFilename($key);
|
||||||
@ -172,6 +168,7 @@ class DiskCachePlugin extends Plugin
|
|||||||
'author' => 'Evan Prodromou',
|
'author' => 'Evan Prodromou',
|
||||||
'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
|
'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
|
||||||
'rawdescription' =>
|
'rawdescription' =>
|
||||||
|
// TRANS: Plugin description.
|
||||||
_m('Plugin to implement cache interface with disk files.'));
|
_m('Plugin to implement cache interface with disk files.'));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user