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 !
* uploaded() can now be used to return a path instead of a URL.
vito (author)
Sun Nov 16 14:22:27 -0800 2008
commit  2ff3d3bcccd006579e6ad18d584f726ec20f3099
tree    1ff8c4bc224a9f015c7d0e6ac90beb41ce47bb95
parent  40a0097e8c74f297e960a55c73e640c57abf27e9
...
1009
1010
1011
1012
 
1013
1014
 
1015
1016
1017
...
1009
1010
1011
 
1012
1013
 
1014
1015
1016
1017
0
@@ -1009,9 +1009,9 @@
0
      * Parameters:
0
      *     $file - Filename relative to the uploads directory.
0
      */
0
-    function uploaded($file) {
0
+    function uploaded($file, $url = true) {
0
         $config = Config::current();
0
-        return $config->chyrp_url.$config->uploads_path.$file;
0
+        return ($url ? $config->chyrp_url.$config->uploads_path.$file : MAIN_DIR.$config->uploads_path.$file);
0
     }
0
 
0
     /**

Comments