When you upload an zip file into file gallery and choose "unzip zip files" the checkbox to choose a catagory has no effect. It would be nice, that all extracted files have the choosen category.
I use TikiWiki 4.2.
In lib/filegals/filegallib.php I added the following lines between "$fileId = $this->insert_file(...)" and "unlink ($extract_dir.$file)" (around line 400):
global $tikilib,$formId,$_REQUEST; $foo = parse_url($_SERVER["REQUEST_URI"]); $foo1 = str_replace("tiki-upload_file", "tiki-download_file", $foo["path"]); $url_browse = $tikilib->httpPrefix() . $foo1; $cat_type = 'file'; $cat_objid = $fileId; $cat_desc = substr($description, 0, 200); $cat_name = $name; $cat_href = $podCastGallery ? '' : $url_browse . "?fileId=" . $fileId; $cat_object_exists = (bool) $fileId; include('categorize.php');
A very temporary solution.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |