Changeset 233

Show
Ignore:
Timestamp:
01/29/06 15:10:45 (3 years ago)
Author:
ben
Message:

Added path to the file link code for weblog posts, RSS feeds etc - which should fix the embedded pictures not appearing problem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/units/files/files_links_make.php

    r110 r233  
    1010                                if (run("users:access_level_check",$file[0]->access) || $file[0]->owner == $_SESSION['userid']) { 
    1111                                        if (!in_array(run("files:mimetype:inline",$file[0]->location), $data['mimetype:inline'])) { 
    12                                                 if (run("files:mimetype:determine",$file[0]->location) == "audio/mpeg") { 
     12                                                if (run("files:mimetype:determine",path . $file[0]->location) == "audio/mpeg") { 
    1313                                                        $filepath = url . run("users:id_to_name",$file[0]->owner) . "/files/" . $file[0]->folder . "/" . $file[0]->ident . "/" . $file[0]->originalname; 
    1414                                                        $filetitle = urlencode(stripslashes($file[0]->title)); 
     
    3434                                                } 
    3535                                        } else { 
    36                                                 list($width, $height, $type, $attr) = @getimagesize($file[0]->location); 
     36                                                list($width, $height, $type, $attr) = @getimagesize(path . $file[0]->location); 
    3737                                                if ($width > 400 || $height > 400) { 
    3838                                                        $run_result .= "<a href=\"";