2010-02-21, 01:15:57
I'm working at an plugin and use some code from the costumfields.php
it works fine on the admin page. Ok, i build an function for theme-footer, added the code and tried it - it was not working. Played around for half an hour, looked at admin-header-footer.php ... found nothing ... then ... "Wait! uri? Wasn't it called id here?" - Yes! After changing uri to id it works?!
Is this an Bug or an Feature?
Code:
$data_edit = array();
// get saved page data
$uri = @$_GET['uri'];
$path = GSDATAPAGESPATH;
// get saved page data
$file = $uri .'.xml';
$data_edit = getXML($path . $file);
it works fine on the admin page. Ok, i build an function for theme-footer, added the code and tried it - it was not working. Played around for half an hour, looked at admin-header-footer.php ... found nothing ... then ... "Wait! uri? Wasn't it called id here?" - Yes! After changing uri to id it works?!
Is this an Bug or an Feature?