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
New install template overwrites current template #715
Comments
this is wrong meta data in the greensteel template. should be reported there. |
I agree about the reporting, already posted a mail. But i think this is important : Maybe check for loading in existing template and ad a warning. |
How can i get the Dokuwiki template back ? |
copy it from a fresh dokuwiki download (lib/tpl/dokuwiki) |
Copy ? This is 2014. Dokuwiki template says at status : installed, protected, bundeld, template. What does Protected mean ? |
Copy is duplicating stuff... ;) Protected means that you cannot remove it (usually). |
I am currently fixing the template's meta data... |
It is now fixed. Download url: http://syntaxseed.com/project/dokuwikithemegreensteel/download/ |
Url for plugin manager: http://syntaxseed.com/downloads/dokuwikithemegreensteel.zip |
The override check code is already there from the beginning: However it's not checking at all, if you manually install plugin/template by URL/upload. We can probably use the override option concept from media upload form, which is what is already in place. |
By default, on frontend $overwrite is false. Backend function installFromUpload / installFromURL will have a default of true to preserve existing behavior for other API users. installArchive now will insert a frontend msg() about not installing because of overwrite restriction. It's not being exposed by exception, but it should be reflected on its return array list of installed plugin. This fixes #715.
I installed a template using the extension manager.
(https://www.dokuwiki.org/template:greensteel)
It was installed into the current template in use, eg dokuwiki.
In the file template.info.txt the field base has parameter : dokuwiki.
This is wrong, should be : greensteel
I don't want this kind of trouble and i think this is not meant to happen.
Maybe check for loading in existing template and ad a warning.
The text was updated successfully, but these errors were encountered: