Hi,
I have a PRE hook on user_modify_link that executes its part fine and it stops further the main code execution. Instead of returning to modify.cgi for displaying either error or success templates, it calls Links::SiteHTML::display with a separate template and values. However, the problem occurs since main code expects some return value and this is the error I get:
------------
Can't use string ("1") as a HASH ref while "strict refs" in use at /usr/local/etc/httpd/cgi-bin/classifieds/modify.cgi line 51.
---------
OK -makes sense. So, my question is: do you know the way around this? How do I add a new template on the existing modify.cgi (other than error and success?)
Thanks,
Masamoda :)
I have a PRE hook on user_modify_link that executes its part fine and it stops further the main code execution. Instead of returning to modify.cgi for displaying either error or success templates, it calls Links::SiteHTML::display with a separate template and values. However, the problem occurs since main code expects some return value and this is the error I get:
------------
Can't use string ("1") as a HASH ref while "strict refs" in use at /usr/local/etc/httpd/cgi-bin/classifieds/modify.cgi line 51.
---------
OK -makes sense. So, my question is: do you know the way around this? How do I add a new template on the existing modify.cgi (other than error and success?)
Thanks,
Masamoda :)