return url('system/files/'. $path, array('absolute' => TRUE));

edvanleeuwen - January 4, 2009 - 21:00
Project:Drupal
Version:5.14
Component:file system
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

In file_create_url() the last line states:
return url('system/files/'. $path, array('absolute' => TRUE));

Could anyone explain why the function should include the 'system/' part?

Thanks in advance.

#1

ainigma32 - January 4, 2009 - 21:09
Status:active» postponed (maintainer needs more info)

See system.module line 198

The url needs that part so the right menu callback is triggered. This is part of the private download method .

Does that answer your question?

- Arie

#2

edvanleeuwen - January 5, 2009 - 20:24
Status:postponed (maintainer needs more info)» closed

Hi Arie,

Thanks for your reply. I guess this answers my question.

Best regards, Ed

 
 

Drupal is a registered trademark of Dries Buytaert.