Commit fdd81de3 authored by tim.plunkett's avatar tim.plunkett Committed by tim.plunkett
Browse files

Issue #1757836 by tim.plunkett | aspilicious: Fixed Core updated some...

Issue #1757836 by tim.plunkett | aspilicious: Fixed Core updated some variables/config thingies again.
parent 26277d20
......@@ -45,7 +45,7 @@ function testUserName() {
$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 @@ function validate_argument($argument) {
}
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'];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment