From: Geoffrey T. D. <da...@us...> - 2003-02-22 19:21:50
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv19808/lib/plugin Modified Files: text2png.php Log Message: If DATA_PATH is not defined (by user in index.php), then use relative URLs to data. Index: text2png.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/text2png.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -2 -b -p -d -r1.11 -r1.12 --- text2png.php 18 Jan 2003 22:08:01 -0000 1.11 +++ text2png.php 22 Feb 2003 19:21:47 -0000 1.12 @@ -175,6 +175,8 @@ extends WikiPlugin } } - $urlpath = DATA_PATH . "/images/$l/"; - $html->pushContent(HTML::img(array('src' => $urlpath . $filename, + $url = "images/$l/$filename"; + if (defined('DATA_PATH')) + $url = DATA_PATH . "/$url"; + $html->pushContent(HTML::img(array('src' => $url, 'alt' => $text))); } else { @@ -187,4 +189,8 @@ extends WikiPlugin // $Log$ +// Revision 1.12 2003/02/22 19:21:47 dairiki +// If DATA_PATH is not defined (by user in index.php), then use +// relative URLs to data. +// // Revision 1.11 2003/01/18 22:08:01 carstenklapp // Code cleanup: |