fix fatal error when renaming a page
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 7 Jan 2011 20:35:01 +0000 (15:35 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 7 Jan 2011 20:36:01 +0000 (15:36 -0500)
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

index f89745a..a034a37 100644 (file)
@@ -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 '';
+    }
+
 }