[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Header lib: remove duplicated inclusion of swipper library causing...

"Boss Ibrahim Mussa Gregoire \(@bim-g\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6890d80e73c13_2cd5f2047142@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c8f5897f8-tflk6.mail>

Boss Ibrahim Mussa Gregoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
5175ad85 by Boss Ibrahim Mussa Gregoire at 2025-08-04T17:48:00+02:00
[FIX] Header lib: remove duplicated inclusion of swipper library causing headerlib throw an exception.
---
* [FIX] header lib: remove duplicated swaper library inclusion cause header crashed.

See merge request tikiwiki/tiki!8160

- - - - -


1 changed file:

- modules/mod-func-adminbar.php


Changes:

=====================================
modules/mod-func-adminbar.php
=====================================
@@ -88,18 +88,5 @@ function module_adminbar($mod_reference, $module_params)
             });
         });
 ');
-    $swiper_js_path = SWIPER_DIST_PATH . '/swiper-bundle.min.js';
-    $swiper_css_path = SWIPER_DIST_PATH . '/swiper-bundle.min.css';
-    //checking for swiper existence
-    if (! file_exists($swiper_js_path)) {
-        Feedback::error(tr('File %0 is missing, you need to execute npm run build', $swiper_js_path));
-        return;
-    }
-    if (! file_exists($swiper_css_path)) {
-        Feedback::error(tr('File %0 is missing, you need to execute npm run build', $swiper_css_path));
-        return;
-    }
-    $headerlib->add_cssfile($swiper_css_path)
-        ->add_jsfile($swiper_js_path);
     TikiLib::lib('smarty')->assign('recent_prefs', TikiLib::lib('prefs')->getRecent());
 }



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

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