aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/acl/script.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2024-09-08 18:09:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2024-09-08 18:09:28 +0200
commit944e9ba7254387adb60f253b0d8796f2276096b1 (patch)
tree982cc1234b1c4060bd58d72ce72a59d0f341d1cb /lib/plugins/acl/script.js
parent6de67ec6f9efe768b902ace7eb42cda8bff62725 (diff)
downloaddokuwiki-944e9ba7254387adb60f253b0d8796f2276096b1.tar.gz
dokuwiki-944e9ba7254387adb60f253b0d8796f2276096b1.zip
use a dispatcher to access static image files
This makes it possible to replace default images in an update safe way. It also addresses the issue raised in dokuwiki/docker#16 A .htaccess rewrite catches any direct accesses that might come in from plugins.
Diffstat (limited to 'lib/plugins/acl/script.js')
-rw-r--r--lib/plugins/acl/script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/acl/script.js b/lib/plugins/acl/script.js
index 95621a255..818b33000 100644
--- a/lib/plugins/acl/script.js
+++ b/lib/plugins/acl/script.js
@@ -38,7 +38,7 @@ var dw_acl = {
toggle_display: function ($clicky, opening) {
$clicky.attr('src',
- DOKU_BASE + 'lib/images/' +
+ DOKU_BASE + 'lib/exe/image.php/' +
(opening ? 'minus' : 'plus') + '.gif');
}});
$tree.delegate('a', 'click', dw_acl.treehandler);
@@ -63,7 +63,7 @@ var dw_acl = {
loadinfo: function () {
jQuery('#acl__info')
.attr('role', 'alert')
- .html('<img src="'+DOKU_BASE+'lib/images/throbber.gif" alt="..." />')
+ .html('<img src="'+DOKU_BASE+'lib/exe/image.php/throbber.gif" alt="..." />')
.load(
DOKU_BASE + 'lib/exe/ajax.php',
jQuery('#acl__detail form').serialize() + '&call=plugin_acl&ajax=info'