[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] Revert "[FIX] Smarty SEFURL modifier: Ensure image SEFURL is user friendly"

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6940e2f698333_2a17f9bc529e3@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d64c6946b-dzs86.mail>

Victor Emanouilov pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
855f9718 by Victor Emanouilov at 2025-12-16T06:41:16+02:00
Revert "[FIX] Smarty SEFURL modifier: Ensure image SEFURL is user friendly"

This reverts commit c60093f3e21cbcd19bcacbcb23193df768323cae as it is causing major regressions on SEF file links in tracker interfaces where previously non-image files used to download and now preview in the browser.

- - - - -


3 changed files:

- − installer/schema/20241107_update_right_column_for_file_type_in_sefurl_tiki.sql
- lib/smarty_tiki/Modifier/Sefurl.php
- show_image.php


Changes:

=====================================
installer/schema/20241107_update_right_column_for_file_type_in_sefurl_tiki.sql deleted
=====================================
@@ -1,3 +0,0 @@
-UPDATE `tiki_sefurl_regex_out`
-SET `right` = 'display$1'
-WHERE `type` = 'file' AND `feature` = 'feature_file_galleries';


=====================================
lib/smarty_tiki/Modifier/Sefurl.php
=====================================
@@ -79,7 +79,7 @@ class Sefurl
                 $attributes = $attributelib->get_attributes('file', $source);
 
                 if ($type == 'file') {
-                    $prefix = 'display';
+                    $prefix = 'dl';
                     $suffix = null;
                 } else {
                     $prefix = $type;


=====================================
show_image.php
=====================================
@@ -25,7 +25,7 @@ if ($prefs['feature_file_galleries'] == 'y' && $prefs['file_galleries_redirect_f
 
     if ($fileInfo) {
         include_once($tikipath . 'tiki-sefurl.php');
-        $newUrl = filter_out_sefurl('tiki-download_file.php?fileId=' . $fileInfo['itemId']);
+        $newUrl = filter_out_sefurl('tiki-download_file.php?fileId=' . $fileInfo['itemId'] . '&display');
 
         if ($tiki_p_admin === 'y') {
             Feedback::warning(tr(



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

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