summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-system-libjs-jquery.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-system-libjs-jquery.patch')
-rw-r--r--debian/patches/0001-system-libjs-jquery.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/0001-system-libjs-jquery.patch b/debian/patches/0001-system-libjs-jquery.patch
new file mode 100644
index 0000000..a6b16be
--- /dev/null
+++ b/debian/patches/0001-system-libjs-jquery.patch
@@ -0,0 +1,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/jquery.php dokuwiki/lib/exe/jquery.php
+--- dokuwiki.orig/lib/exe/jquery.php
++++ dokuwiki/lib/exe/jquery.php
+@@ -24,7 +24,7 @@ function jquery_out()
+ {
+ $cache = new Cache('jquery', '.js');
+ $files = [
+- DOKU_INC . 'lib/scripts/jquery/jquery.min.js',
++ '/usr/share/javascript/jquery/jquery.min.js',
+ DOKU_INC . 'lib/scripts/jquery/jquery-ui.min.js'
+ ];
+ $cache_files = $files;