1
Hi all--I'm still working on understanding all the ins & outs of the new XOOPS + Smarty + XoopsGallery and was hoping someone could point me in the right direction.
When I add a comment, and look at the /include/comment_form.php (included by /modules/XoopsGallery/comment_new.php) hidden inputs, the "extra_param" values are blank. I think I MAY have found the source of the problem. in /include/comment_form.php line 109 says:
Quote:
$hidden_value = isset(${$extra_param}) ? htmlspecialchars(${$extra_param}, ENT_QUOTES) : '';
...and it is NOT including the values. However, when I change register_globals to ON, it works. Should I correct the above line, or is it the responsibility of the /modules/XoopsGallery/comment_new.php to set them in the first place? I looked for a generic "HTTP_GET|POST_VARS to Local vars" routine, but didn't find any one place--it looks like the modules are responsible for the pulling in, but I'm not sure.
Where does the patch need to go? XOOPS core or XoopsGallery? I've seen other posts about "some modules don't work correctly yet with register_globals off", could this be why??
I am just starting to dip my toe into the new Xoops2 setup, but it looks very nice so far (albeit a bit of a learning curve--I've only started OO programming and am very new to it in PHP and it's a little "spread out"). Any help is appreciated.
Regards,
Glen Starrett