This was originalyl intended as a performance improvement, but the
parent is already stored, and once calculated the value of locked is
already returned.
*/
protected $_locked;
- /**
- * Whether any parent of the current context is locked.
- *
- * Can be accessed publicly through $context->ancestorlocked.
- *
- * @var int
- */
- protected $_ancestorlocked;
-
/**
* @var array Context caching info
*/
}
if ($parent = $this->get_parent_context()) {
- $this->_ancestorlocked = $parent->is_locked();
- return $this->_ancestorlocked;
+ return $parent->is_locked();
}
return false;