*/
protected function loadState ($stateName) {
// Init state instance
- $stateInstance = null;
+ $stateInstance = NULL;
// Create state class name
$className = $this->getStatePrefix() . '' . $this->convertToClassName($stateName) . 'State';
if (class_exists($this->getClassName())) {
// This class does exist. :-)
$isValid = true;
- } elseif ($this->getClassName() != $this->statePrefix.'DefaultNewsState') {
+ } elseif ($this->getClassName() != $this->statePrefix . 'DefaultState') {
// Set default state
- $this->setClassName($this->statePrefix . 'DefaultNewsState');
+ $this->setClassName($this->statePrefix . 'DefaultState');
} else {
// All is tried, give it up here
throw new DefaultStateException($this, self::EXCEPTION_DEFAULT_STATE_GONE);