mantisbt-plugins / Snippets

Define snippets of text that can be easily pasted into text fields
MIT License
8 stars 12 forks source link

MantisBT install page included instead of plugin-specific install functions #53

Closed dregad closed 3 years ago

dregad commented 3 years ago

When the plugin's schema function executes, the current working directory is that of the parent script, i.e. the one which calls plugin_needs_upgrade(), usually via plugin_init_installed() in core.php.

When said parent script is one of MantisBT's admin scripts, typically the index page, this results in MantisBT's install.php file to be included instead of the plugin's, resulting in the page displaying a (non-functional) install page on top of its actual contents as shown in the screenshot below

image

Regression introduced in 2.3.0 by 20484c1318c63498ad7c3ddffa75224ee4cb761e.