[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-fix-tracker-url-wikisyntax] [REM] Url trackerfield: remove pref tracker_url_parse_wiki

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6985b48dac7d5_3b184908442cd@gitlab-sidekiq-low-urgency-cpu-bound-v2-6c77bffdbf-6jrpm.mail>

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


Commits:
80f70849 by Sammy Ndabo at 2026-02-06T11:29:17+02:00
[REM] Url trackerfield: remove pref tracker_url_parse_wiki

- - - - -


3 changed files:

- lib/core/Tracker/Field/Url.php
- lib/prefs/tracker.php
- templates/admin/include_trackers.tpl


Changes:

=====================================
lib/core/Tracker/Field/Url.php
=====================================
@@ -72,24 +72,18 @@ class Tracker_Field_Url extends \Tracker\Field\AbstractItemField implements \Tra
 
     public function renderOutput($context = [])
     {
-        global $prefs;
-
         $smarty = TikiLib::lib('smarty');
 
         $url = $this->getConfiguration('value');
         $trimmed = trim($url);
-        $parseWikiSyntax = isset($prefs['tracker_url_parse_wiki']) && $prefs['tracker_url_parse_wiki'] === 'y';
 
         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, ']'))
-            )
+            (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]).
+            // Allow wiki link syntax in URL fields (e.g. ((PageName)) or [url|text]).
             return TikiLib::lib('parser')->parse_data_simple($url);
         } elseif ($this->getOption('linkToURL') == 2) { // Site title as link
             return smarty_function_object_link(


=====================================
lib/prefs/tracker.php
=====================================
@@ -65,14 +65,6 @@ function prefs_tracker_list()
             'type' => 'flag',
             'default' => 'y',
         ],
-        'tracker_url_parse_wiki' => [
-            'name' => tr('Parse wiki syntax in URL tracker fields'),
-            'description' => tr('Allow wiki link syntax like ((PageName)) or [url|text] in URL tracker fields.'),
-            'type' => 'flag',
-            'default' => 'y',
-            'dependencies' => ['feature_trackers', 'trackerfield_url'],
-            'tags' => ['advanced'],
-        ],
         'tracker_wikirelation_synctitle' => [
             'name' => tr('Sync wiki page name to linked tracker field'),
             'description' => tr('When the wiki page is renamed or when the value of the tracker field that is linked to the wiki page is changed, make the corresponding change as well to the other linked via tiki.wiki.linkedfield relation.'),


=====================================
templates/admin/include_trackers.tpl
=====================================
@@ -65,7 +65,6 @@
                 {preference name=unified_numeric_field_scroll}
                 {preference name=tracker_autoincrement_resettable}
                 {preference name=tracker_currency_default_locale}
-                {preference name=tracker_url_parse_wiki}
             </fieldset>
 
             <fieldset class="admin">



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/80f70849aa982b939ab4625378cfc53514acb0f1
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.