Update VersionFeed_Controller.php

Make it compatible with the existing test
This commit is contained in:
spekulatius 2014-12-17 14:22:51 +13:00
parent 527b2e4f45
commit 108f618d62

View File

@ -50,7 +50,7 @@ class VersionFeed_Controller extends Extension {
// Check viewability of changes
if(!Config::inst()->get('VersionFeed', 'changes_enabled')
|| !$this->owner->PublicHistory
|| $this->owner->ID == -1
|| $this->owner->Version == -1
) {
return $this->owner->httpError(404, 'Page history not viewable');
}