[dokuwiki] Re: Configuration plugin problem

Danny Trommer wrote:
Hi,

I'm having a problem with the configuration manager plugin from the latest devel release
http://dev.splitbrain.org/download/snapshots/dokuwiki-2006-01-29.tgz


When I change some configuration settings and hit the 'Save' button I'm getting displayed a 'This topic does not exist yet" page.
The URL is http://localhost/dokuwiki/doku.php?id=?do=admin&page=config


I guess this should be http://localhost/beastiemuseum/main.php?id=do_admin&do=admin&page=config or something.

I looked into the lib/plugins/config/admin.php and changed
ptln('<form action="'.wl($id).'" method="post">'); to
ptln('<form action="'.wl($ID).'" method="post">');

but it didn't help. Can somebody have a look into this issue?

Regards,
Danny Trommer
Hi,

Patch sent.

In addition to above you need to:

- add "global $ID" to start of code blocks for render() and handle() functions
- modify the redirect url towards the end of the handle() function code block...


header("Location: ".wl($ID,'do=admin&page=config'));

Cheers,

Chris
PS. Sorry Andi, it took me three goes to get a four line patch right :-) Mondays!


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: