diff options
Diffstat (limited to 'debian/patches/0003-system-libjs-jquery-ui.patch')
-rw-r--r-- | debian/patches/0003-system-libjs-jquery-ui.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/0003-system-libjs-jquery-ui.patch b/debian/patches/0003-system-libjs-jquery-ui.patch new file mode 100644 index 0000000..cb48366 --- /dev/null +++ b/debian/patches/0003-system-libjs-jquery-ui.patch @@ -0,0 +1,41 @@ +Author: Tanguy Ortolo <tanguy+debian@ortolo.eu> +Description: Use packaged version of jQuery instead of an embedded one. + +diff -Naurp dokuwiki.orig/lib/exe/css.php dokuwiki/lib/exe/css.php +--- dokuwiki.orig/lib/exe/css.php ++++ dokuwiki/lib/exe/css.php +@@ -78,8 +78,8 @@ function css_out() + + // load jQuery-UI theme + if ($mediatype == 'screen') { +- $files[DOKU_INC . 'lib/scripts/jquery/jquery-ui-theme/smoothness.css'] = +- DOKU_BASE . 'lib/scripts/jquery/jquery-ui-theme/'; ++ $files['/usr/share/javascript/jquery-ui/themes/base/jquery-ui.min.css'] = ++ '/usr/share/javascript/jquery-ui/themes/base/'; + } + // load plugin styles + $files = array_merge($files, css_pluginstyles($mediatype)); +diff -Naurp dokuwiki.orig/lib/exe/jquery.php dokuwiki/lib/exe/jquery.php +--- dokuwiki.orig/lib/exe/jquery.php ++++ dokuwiki/lib/exe/jquery.php +@@ -25,7 +25,7 @@ function jquery_out() + $cache = new Cache('jquery', '.js'); + $files = [ + '/usr/share/javascript/jquery/jquery.min.js', +- DOKU_INC . 'lib/scripts/jquery/jquery-ui.min.js' ++ '/usr/share/javascript/jquery-ui/jquery-ui.min.js', + ]; + $cache_files = $files; + $cache_files[] = __FILE__; +diff -Naurp dokuwiki.orig/lib/exe/js.php dokuwiki/lib/exe/js.php +--- dokuwiki.orig/lib/exe/js.php ++++ dokuwiki/lib/exe/js.php +@@ -47,7 +47,7 @@ function js_out() + // array of core files + $files = [ + '/usr/share/javascript/jquery-cookie/jquery.cookie.js', +- DOKU_INC . 'inc/lang/' . $conf['lang'] . '/jquery.ui.datepicker.js', ++ '/usr/share/javascript/jquery-ui/ui/i18n/datepicker-'.$conf['lang'].'.js', + DOKU_INC . "lib/scripts/fileuploader.js", + DOKU_INC . "lib/scripts/fileuploaderextended.js", + DOKU_INC . 'lib/scripts/helpers.js', |