Hi All,
removepage.php looks for the actual page name by using
$request->getArg, therefore in HTTP_POST_VARS when hitting the "Remove
the page now" button.
But HTTP_POST_VARS does not contain the page name (from the URI), at
least on my system.
Result: the HomePage is deleted.
I inserted another hidden field in the remove form:
HTML::input(array('type' => 'hidden',
'name' => 'pagename',
'value' => $page->getName())),
It works, but I don't know whether $page->getName() is the best
approach since I have little knowledge about the interplay of all the
stuff.
Could this relate to the search functions not working on (some?)
systems whith USE_PATH_INFO=true? There was also missing the name of
the search page...
Oliver
--
Oliver Betz
DUOmetric GmbH
Buero Muenchen
Stockdorfer Str. 54
D-81475 Muenchen
Tel ++49-89-75967390
Fax ++49-89-75967391
|