[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-fix-tracker-url-wikisyntax] [FIX] Url.php: fix php lints issues

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6980f402926ea_3b1843a42522@gitlab-sidekiq-low-urgency-cpu-bound-v2-856689485b-9dlx6.mail>

Sammy Ndabo pushed to branch tiki-fix-tracker-url-wikisyntax at Tiki Wiki CMS Groupware / Tiki


Commits:
b9c0f9b6 by Sammy Ndabo at 2026-02-02T20:58:47+02:00
[FIX] Url.php: fix php lints issues

- - - - -


1 changed file:

- lib/core/Tracker/Field/Url.php


Changes:

=====================================
lib/core/Tracker/Field/Url.php
=====================================
@@ -82,10 +82,13 @@ class Tracker_Field_Url extends \Tracker\Field\AbstractItemField implements \Tra
 
         if (empty($url) || $context['list_mode'] == 'csv' || $this->getOption('linkToURL') == 1) {
             return $url;
-        } elseif ($parseWikiSyntax && (
-            (str_starts_with($trimmed, '((') && str_ends_with($trimmed, '))')) ||
-            (str_starts_with($trimmed, '[') && str_ends_with($trimmed, ']'))
-        )) {
+        } elseif (
+            $parseWikiSyntax
+            && (
+                (str_starts_with($trimmed, '((') && str_ends_with($trimmed, '))'))
+                || (str_starts_with($trimmed, '[') && str_ends_with($trimmed, ']'))
+            )
+        ) {
             // Allow wiki link syntax in URL fields when enabled (e.g. ((PageName)) or [url|text]).
             return TikiLib::lib('parser')->parse_data_simple($url);
         } elseif ($this->getOption('linkToURL') == 2) { // Site title as link



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b9c0f9b61482cd5db0c53de8db363fbfa37788b0
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.