Commit 265a77b3 authored by alexpott's avatar alexpott

Issue #2002866 by mcpuddin: Rename Views method has_default_argument() to hasDefaultArgument().

parent 39069958
......@@ -733,7 +733,7 @@ function default_default() {
/**
* Determine if the argument is set to provide a default argument.
*/
function has_default_argument() {
function hasDefaultArgument() {
$info = $this->default_actions($this->options['default_action']);
return !empty($info['has default argument']);
}
......@@ -1014,7 +1014,7 @@ function get_value() {
// Clone ourselves so that we don't break things when we're really
// processing the arguments.
$argument = clone $this;
if (!isset($arg) && $argument->has_default_argument()) {
if (!isset($arg) && $argument->hasDefaultArgument()) {
$arg = $argument->get_default_argument();
// remember that this argument was computed, not passed on the URL.
......
......@@ -855,7 +855,7 @@ protected function _buildArguments() {
$arg = isset($this->args[$position]) ? $this->args[$position] : NULL;
$argument->position = $position;
if (isset($arg) || $argument->has_default_argument()) {
if (isset($arg) || $argument->hasDefaultArgument()) {
if (!isset($arg)) {
$arg = $argument->get_default_argument();
// make sure default args get put back.
......
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