summaryrefslogtreecommitdiffstats
path: root/debian/patches/0002-system-libjs-jquery-cookie.patch
blob: 2cefc5367f893bb3c8a5734e42a45ca244101257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Tanguy Ortolo <tanguy+debian@ortolo.eu>
Description: Use packaged version of jQuery instead of an embedded one.

diff -Naurp dokuwiki.orig/lib/exe/js.php dokuwiki/lib/exe/js.php
--- dokuwiki.orig/lib/exe/js.php
+++ dokuwiki/lib/exe/js.php
@@ -46,7 +46,7 @@ function js_out()
 
     // array of core files
     $files = [
-        DOKU_INC . 'lib/scripts/jquery/jquery.cookie.js',
+        '/usr/share/javascript/jquery-cookie/jquery.cookie.js',
         DOKU_INC . 'inc/lang/' . $conf['lang'] . '/jquery.ui.datepicker.js',
         DOKU_INC . "lib/scripts/fileuploader.js",
         DOKU_INC . "lib/scripts/fileuploaderextended.js",