Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/smileys #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

greenship24
Copy link

Goal

  • Symlink smileys so they work as the docs state

Relevant links

Summary of changes

  • mv original lib/images/smileys dir to lib/images/smileys.core like plugins, etc.
  • extend loop for plugins,tpl to do same for images/smileys dir for symlink to /storage

Testing

  • I've tested this locally on a test instance of mine that was broken before (ie. I had smileys.local.conf from a custom smiley pack and the local images obviously were not picked up) and changed to this image and they worked again
  • I would appreciate someone testing more against a test instance of their own to confirm that nothing is broken otherwise

CS added 3 commits September 4, 2024 12:06
- mv original images dir to .core like plugins, etc.
- adjust loop to include images dir for symlink to /storage
@splitbrain
Copy link
Contributor

Thanks for submitting this. However, I think I would prefer a solution that accesses files in lib/images via a PHP dispatcher. This dispatcher could look for custom images in in conf/images where conf is defined by DOKU_CONF - this would make customizing upgrade safe and would work in a farm setup.

@greenship24
Copy link
Author

Well sadly I don't know/code PHP so I could not be of assistance with that.

splitbrain added a commit to dokuwiki/dokuwiki that referenced this pull request Sep 8, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants