From c7f3fc37acc819afc62cf2440b81c8325695f3dc Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 7 Jan 2011 15:35:01 -0500 Subject: [PATCH] fix fatal error when renaming a page Not sure if it would be better simply to change the base implementation to return an empty string instead of throwing an exception, but this fixes the issue for now. --- wicked/lib/Page/AddPage.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wicked/lib/Page/AddPage.php b/wicked/lib/Page/AddPage.php index f89745a66..a034a371b 100644 --- a/wicked/lib/Page/AddPage.php +++ b/wicked/lib/Page/AddPage.php @@ -106,4 +106,15 @@ class Wicked_Page_AddPage extends Wicked_Page { return $this->_newpage; } + /** + * + * + * @return string + */ + public function getText() + { + // New page, no text to return + return ''; + } + } -- 2.11.0