Jump to content

Topic on Extension talk:FileList

12.107.45.2 (talkcontribs)

Is there any fix to get this working on pages that have custom namespaces? It works great on regular pages, but when I try to upload a file on a custom namespace page, no files show up in the list even though the filed is successfully uploaded.

I assume it has something to do with the namespace being converted to a regular pagename (i.e. if trying to upload Testfile.doc onto a page called "Testpage" in a custom namespace called "Test", the filename gets converted to "Test - Testpage - Testfile.doc" when it is uploaded instead of "Test:Testpage - Testfile.doc") ...so no files show up in the filelist table.

Any ideas?

12.107.45.2 (talkcontribs)

Still haven't been able to figure out how to get around this..does anyone know of a possible fix to the code?

Nymanjens (talkcontribs)

That's weird because the same prefix is used for both uploading and searching ($prefix = htmlspecialchars(fl_get_prefix_from_page_name($pageName));). I have no time to look at it right now, but I would suggest looking at this value at upload-time and serach-timeː

$prefix = htmlspecialchars(fl_get_prefix_from_page_name($pageName));

Reply to "Namespace fix"