cvs: smarty /libs/plugins function.html_image.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1056468502@cvsserver>
messju		Tue Jun 24 11:28:22 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.html_image.php 
  Log:
  added parsing of forgotton param "basedir"
  
  
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.20 smarty/libs/plugins/function.html_image.php:1.21
--- smarty/libs/plugins/function.html_image.php:1.20	Sat Jun 21 13:35:15 2003
+++ smarty/libs/plugins/function.html_image.php	Tue Jun 24 11:28:22 2003
@@ -47,7 +47,7 @@
     $prefix = '';
     $suffix = '';
     $basedir = isset($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'])
-        ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : '/';
+        ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : '';
     if(strstr($GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'], 'Mac')) {
         $dpi_default = 72;
     } else {
@@ -61,6 +61,7 @@
             case 'height':
             case 'width':
             case 'dpi':
+            case 'basedir':
                 $$_key = $_val;
                 break;
 



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.