Loading...
 
Skip to main content

Category not correctly detected on wiki pages with spaces in their name

Status
Open
Subject
Category not correctly detected on wiki pages with spaces in their name
Version
17.x
Category
  • Bug
Feature
Category
Search Engine Friendly URLs (SEFURLs)
Resolution status
New
Submitted by
amette
Lastmod by
amette
Rating
(0)
Description

Using the following code in a Wiki Parsed module

example module code
Copy to clipboard
{if isset($objectCategoryIds) and in_array(42, $objectCategoryIds)} In category {/if}


should show the text "In Category" when the wiki page currently shown in the center column is in the category with id 42.
This works only on pages without spaces in their names. Things seem to have changed. This works with pages that have spaces in their name, but not if the spaces are being replaced by dashes.

The above code should also work when on a wiki page with spaces in it's name.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6462
Created
Wednesday 04 October, 2017 16:23:50 UTC
by amette
LastModif
Thursday 18 January, 2018 15:58:54 UTC


Show PHP error messages