[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Restore cat_ CSS classes on body tag for categorized wiki pages

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]> Tue, 07 Jul 2026 14:30:39 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a4d0d8f835b3_383c5e1c888977@gitlab-sidekiq-low-urgency-cpu-bound-v2-7bcddcb754-8s2cg.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
6432495b by Bsfez at 2026-07-07T14:05:57+00:00
[FIX] Restore cat_ CSS classes on body tag for categorized wiki pages

- - - - -


1 changed file:

- lib/core/Sections.php


Changes:

=====================================
lib/core/Sections.php
=====================================
@@ -411,5 +411,22 @@ class Sections
                 ];
             }
         }
+
+        // Fallback: resolve a plain wiki page from the request when no other
+        // context is available (e.g. when called before tiki-index.php sets
+        // $cat_type/$cat_objid). The page request var may be a slug.
+        if (! empty($request['page'])) {
+            $pageName = $request['page'];
+            if ($prefs['wiki_url_scheme'] !== 'urlencode') {
+                $resolved = TikiLib::lib('wiki')->get_page_by_slug($pageName);
+                if (! empty($resolved)) {
+                    $pageName = $resolved;
+                }
+            }
+            return [
+                'type' => 'wiki page',
+                'object' => $pageName,
+            ];
+        }
     }
 }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6432495b38d9993c0c3acfdce4edae0d1382fa52

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6432495b38d9993c0c3acfdce4edae0d1382fa52
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs