Skip to content
Snippets Groups Projects
Commit 400497e1 authored by chris's avatar chris
Browse files

config manager update - fix for missing $ID in URLs

darcs-hash:20060130134210-9b6ab-6f7f0eb50d95997c1e0d3df79011d7963721591e.gz
parent 8fd2f03a
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin {
* handle user request
*/
function handle() {
global $ID;
if (!$this->_restore_session()) return $this->_close_session();
if (!isset($_REQUEST['save']) || ($_REQUEST['save'] != 1)) return $this->_close_session();
......@@ -89,7 +90,8 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin {
* output appropriate html
*/
function html() {
global $lang;
global $lang;
global $ID;
if (is_null($this->_config)) { $this->_config = new configuration($this->_file); }
$this->setupLocale(true);
......@@ -105,7 +107,7 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin {
elseif ($this->_changed)
ptln('<p class="ok">'.$this->getLang('updated').'</p>');
ptln('<form action="'.wl($id).'" method="post">');
ptln('<form action="'.wl($ID).'" method="post">');
ptln(' <table class="inline">');
foreach($this->_config->setting as $setting) {
......
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