From 9f123afa1b8e6d396c6f31e065ed71eb490ab7c1 Mon Sep 17 00:00:00 2001 From: rurban Date: Thu, 15 Apr 2004 21:11:45 +0000 Subject: [PATCH] fixed RichTable error, haing no asXml method for block_htmlelement and cached_wikilink see https://sourceforge.net/forum/message.php?msg_id=2524447 git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@3311 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index 6c4a3e364..4e6414885 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -1,4 +1,4 @@ - * * This file is part of PhpWiki. @@ -306,6 +306,14 @@ class Cached_WikiLink extends Cached_Link { return WikiLink($page, 'auto', $label); } + function asXml() { + $label = isset($this->_label) ? $this->_label : false; + $anchor = isset($this->_anchor) ? (string)$this->_anchor : ''; + $page = new WikiPageName($this->_page, false, $anchor); + $link = WikiLink($page, 'auto', $label); + return $link->asXml(); + } + function asString() { if (isset($this->_label)) return $this->_label; @@ -341,6 +349,12 @@ class Cached_PhpwikiURL extends Cached_DynamicContent return LinkPhpwikiURL($this->_url, $label, $basepage); } + function asXml() { + $label = isset($this->_label) ? $this->_label : false; + $link = LinkPhpwikiURL($this->_url, $label); + return $link->asXml(); + } + function asString() { if (isset($this->_label)) return $this->_label; -- 2.45.0