Fixed unimplemented PageObject::getOriginal() call [#3098]

This commit is contained in:
Matias Griese
2020-12-09 14:02:33 +02:00
parent ac85946e0f
commit 6a0caebe2e
2 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
* Fixed potential error when upgrading Grav
* Fixed broken list in `bin/gpm index` [#3092](https://github.com/getgrav/grav/issues/3092)
* Fixed CLI/GPM command failures returning 0 (success) value [#3017](https://github.com/getgrav/grav/issues/3017)
* Fixed unimplemented `PageObject::getOriginal()` call [#3098](https://github.com/getgrav/grav/issues/3098)
# v1.7.0-rc.19
## 12/02/2020

View File

@@ -1082,12 +1082,13 @@ trait PageLegacyTrait
/**
* Gets the Page Unmodified (original) version of the page.
*
* Assumes that object has been cloned before modifying it.
*
* @return PageInterface The original version of the page.
*/
public function getOriginal()
{
// TODO:
throw new RuntimeException(__METHOD__ . '(): Not Implemented');
return $this->getFlexDirectory()->getObject($this->getKey());
}
/**