From 2caae15cca4485643f057ea77cf7a00d18f0b8ee Mon Sep 17 00:00:00 2001 From: rurban Date: Tue, 12 Oct 2004 14:56:57 +0000 Subject: [PATCH] lib/WikiPluginCached.php:731: Notice[8]: Undefined property: _static git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4026 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiPluginCached.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/WikiPluginCached.php b/lib/WikiPluginCached.php index f1517aa0f..e11a6c9f3 100644 --- a/lib/WikiPluginCached.php +++ b/lib/WikiPluginCached.php @@ -1,4 +1,4 @@ - image data - if ($this->_static) { + if (!empty($this->_static)) { $ext = "." . $content['imagetype']; if (is_string($imagehandle) and file_exists($imagehandle)) { if (preg_match("/.(\w+)$/",$imagehandle,$m)) { @@ -760,7 +760,7 @@ class WikiPluginCached extends WikiPlugin $fp = fopen($tmpfile,'rb'); $content['image'] = fread($fp, filesize($tmpfile)); fclose($fp); - if ($this->_static) { + if (!empty($this->_static)) { // on static it is in "uploads/" but in wikicached also $content['file'] = $tmpfile; $content['url'] = getUploadDataPath() . basename($tmpfile); @@ -1089,6 +1089,10 @@ class WikiPluginCached extends WikiPlugin // $Log: not supported by cvs2svn $ +// Revision 1.15 2004/09/26 17:09:23 rurban +// add SVG support for Ploticus (and hopefully all WikiPluginCached types) +// SWF not yet. +// // Revision 1.14 2004/09/25 16:26:08 rurban // some plugins use HTML // -- 2.45.0