Parameter "debug" in url is ignored during <inp2:m_XMLTemplate .../> tag usage

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Feb 5, 2011, 9:21:47 AM2/5/11
to In-Portal Bugs
In-Portal has nice debug mode feature where various analytical information about ongoing processes on every page is displayed. When allowed by "/system/debug.php" file this debugger report can be viewed by pressing F12 on every page being visited (both Front-end and Admin Console).

Usually developers have this mode turned on by default to simplify development process. However in some cases debug mode should be temporarily turned off, e.g. when XML document is displayed then "text/xml" header is sent instead of "text/html", so no HTML of debugger will work anyway.

To do that in templates there is a <inp2:m_NoDebug/> tag that does it's job. But to enable debug mode (e.g. temporarily cancel this tag effect without changing the template, where it's used) developer can add &debug=1 parameter into url of the page, he is browsing.

There is also <inp2:m_XMLTemplate .../> tag that also disables debug mode, but adding &debug=1 to url has no effect. Attached patch fixes that.


Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
debug_parameter_not_working_with_xmltemplate_tag.patch

Dmitry A.

unread,
Feb 5, 2011, 4:30:32 PM2/5/11
to in-port...@googlegroups.com
Thanks for the patch.

Reviewed and tested good


DA
Reply all
Reply to author
Forward
0 new messages