From cc7d0c94bfa9c4c59fad7c52eb7c9b0decffb885 Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Wed, 5 Jul 2006 12:56:52 +0200 Subject: IO action events Adds page and namespace events: IO_WIKIPAGE_READ IO_WIKIPAGE_WRITE IO_NAMESPACE_CREATED IO_NAMESPACE_DELETED The namespace events are purely advisory, while the wikipage events allow page content to be modified between DokuWiki and the disk. These events are primarily intended to simplify keeping other tools in sync with the semantic structure of a DokuWiki site. As an added benefit, the events allow plugins to conduct automated processing of raw wiki page content. The namespace events cover the separate namespace trees for both pages and media. The "name" of the tree that the event belongs to is included in the event data. darcs-hash:20060705105652-05dcb-f44024e852a2adf1a14b8a7d69c46db067e72307.gz --- lib/exe/mediamanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php index b381fabf6..fc11ed36c 100644 --- a/lib/exe/mediamanager.php +++ b/lib/exe/mediamanager.php @@ -31,7 +31,7 @@ $AUTH = auth_quickaclcheck("$NS:*"); // create the given namespace (just for beautification) - if($AUTH >= AUTH_UPLOAD) io_makeFileDir(mediaFN("$NS:xxx")); + if($AUTH >= AUTH_UPLOAD) { io_createNamespace("$NS:xxx", 'media'); } // handle upload if($_FILES['upload']['tmp_name']){ -- cgit v1.2.3