Skip to content
Snippets Groups Projects
Commit 02c2de02 authored by Michael Klier's avatar Michael Klier
Browse files

prevent possible infinite redirect loop in upgradeplugindirectory plugin

darcs-hash:20090120222709-23886-478ff1ee40ff91f2a478735e51423e888b47a5af.gz
parent bdd8111b
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,11 @@ class action_plugin_upgradeplugindirectory extends DokuWiki_Action_Plugin {
if (empty($plugin_controller)) return;
if(!is_writable(DOKU_INC.'lib/plugins')) {
msg("Plugin Directory Upgrade, lib/plugins isn't writable for the webserver, no action taken!", -1);
return;
}
$plugins = $plugin_controller->getList('',true); // get all plugins
foreach ($plugins as $plugin) {
if ($this->plugin_isdisabled_oldstyle($plugin)) {
......@@ -94,4 +99,4 @@ class action_plugin_upgradeplugindirectory extends DokuWiki_Action_Plugin {
}
}
//Setup VIM: ex: et ts=4 enc=utf-8 :
\ No newline at end of file
//Setup VIM: ex: et ts=4 enc=utf-8 :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment