Issue #1757836 by tim.plunkett | aspilicious: Fixed Core updated some variables/config thingies again.
parent
26277d209d
commit
fdd81de3de
|
@ -45,7 +45,7 @@ class HandlerFieldUserNameTest extends ViewsSqlTest {
|
|||
$this->assertIdentical($render, $username, 'If the user is not linked the username should be printed out for a normal user.');
|
||||
|
||||
$view->result[0]->uid = 0;
|
||||
$anon_name = variable_get('anonymous', t('Anonymous'));
|
||||
$anon_name = config('user.settings')->get('anonymous');
|
||||
$view->result[0]->users_name = '';
|
||||
$render = $view->field['name']->advanced_render($view->result[0]);
|
||||
$this->assertIdentical($render, $anon_name , 'For user0 it should use the default anonymous name by default.');
|
||||
|
|
|
@ -25,7 +25,7 @@ class UserUid extends ArgumentPluginBase {
|
|||
|
||||
function title() {
|
||||
if (!$this->argument) {
|
||||
$title = variable_get('anonymous', t('Anonymous'));
|
||||
$title = config('user.settings')->get('anonymous');
|
||||
}
|
||||
else {
|
||||
$title = db_query('SELECT u.name FROM {users} u WHERE u.uid = :uid', array(':uid' => $this->argument))->fetchField();
|
||||
|
|
|
@ -30,7 +30,7 @@ class Uid extends Numeric {
|
|||
*/
|
||||
function title_query() {
|
||||
if (!$this->argument) {
|
||||
return array(variable_get('anonymous', t('Anonymous')));
|
||||
return array(config('user.settings')->get('anonymous'));
|
||||
}
|
||||
|
||||
$titles = array();
|
||||
|
|
|
@ -90,7 +90,7 @@ class User extends ArgumentValidatorPluginBase {
|
|||
}
|
||||
else {
|
||||
if ($type == 'name' || $type == 'either') {
|
||||
$name = !empty($GLOBALS['user']->name) ? $GLOBALS['user']->name : variable_get('anonymous', t('Anonymous'));
|
||||
$name = !empty($GLOBALS['user']->name) ? $GLOBALS['user']->name : config('user.settings')->get('anonymous');
|
||||
if ($argument == $name) {
|
||||
$account = clone $GLOBALS['user'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue