public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
When specifying a path for an upload, return it prepended to the
filename.
vito (author)
Sat Nov 15 15:53:10 -0800 2008
commit  40a0097e8c74f297e960a55c73e640c57abf27e9
tree    58f50efd844285315e9506cc0e0388132ed6cb0b
parent  311a2bf6645405323c51da7564880d83f0a44375
...
977
978
979
980
 
981
982
983
...
977
978
979
 
980
981
982
983
0
@@ -977,7 +977,7 @@
0
         } elseif (!@move_uploaded_file($file['tmp_name'], $dir."/".$filename))
0
             error(__("Error"), $message);
0
 
0
-        return $filename;
0
+        return ($path ? $path."/".$filename : $filename);
0
     }
0
 
0
     /**

Comments