Ticket #149 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Plugins can't easily get a sub-directory URL

Reported by: michaeltwofish Owned by:
Priority: minor Milestone: 0.4
Component: Habari Core Software Version: SVN
Keywords: Cc:

Description

It is not straightforward for a plugin to refer to a sub-directory as a URL. For example, a plugin might integrate an external javascript system into Habari, it needs to link to the javascript.

Attached is a patch to Pluggable that allows a plugin to call $this->get_url(). It also provides a generic helper function Url::get_from_filesystem().

Attachments

get_url_helpers.patch (1.2 kB) - added by michaeltwofish 10 months ago.
get_url_helpers.2.patch (1.2 kB) - added by michaeltwofish 10 months ago.

Change History

Changed 10 months ago by michaeltwofish

Changed 10 months ago by michaeltwofish

Changed 10 months ago by michaeltwofish

Ooops. Didn't click replace attachment. The second just has a small documentation fix.

Changed 10 months ago by ringmaster

  • status changed from new to closed
  • resolution set to fixed

Fixed in r1335.

Note: See TracTickets for help on using tickets.