diff --git a/src/lib/PanaceaPageController.php b/src/lib/PanaceaPageController.php index 7b46f92..42a7844 100644 --- a/src/lib/PanaceaPageController.php +++ b/src/lib/PanaceaPageController.php @@ -55,7 +55,7 @@ try { $templateView = new PanaceaTemplateView($this->page); - $templateView->addView($this->viewFactory->getView($this->page, $request->__toString())); + $templateView->addView($this->viewFactory->getView($this->page)); return $templateView; } catch (ClassNotFoundException $e) { diff --git a/src/lib/views/PanaceaPageView.php b/src/lib/views/PanaceaPageView.php index 2706639..961817b 100644 --- a/src/lib/views/PanaceaPageView.php +++ b/src/lib/views/PanaceaPageView.php @@ -22,50 +22,14 @@ */ class PanaceaPageView extends View { - protected $wikiText; - - /** - * Creates a new {@link WikiPageView} with the specified - * priority - * - * @author Tommy Montgomery - * @since 2008-10-05 - * - * @param int $priority The priority of this view - */ - public function __construct($wikiText, $priority = 0) { - if (!is_string($wikiText)) { - throw new InvalidTypeException(1, 'string', $wikiText); - } - - parent::__construct($priority); - - $this->wikiText = $wikiText; - } - - /** - * Gets all meta data associated with this view - * - * @author Tommy Montgomery - * @since 2008-10-05 - * - * @return ViewMetaData - */ - public function getMetaData() { - return new ViewMetaData(); - } - /** * Renders the view * * @author Tommy Montgomery * @since 2008-10-05 - * - * @param bool $sendHeaders Whether to send the response headers or not */ public function send() { - WikiParser::parseText($this->wikiText); - echo $this->wikiText; + echo '
Hello
'; } }