Menu

#1 return instead of print for quTags injections

open
nobody
None
5
2007-07-16
2007-07-16
No

The send_qu* functions are so nice that I think it should be really better that if you add to quTags some twin functions that instead of directly print the result, return it as the result of the function.
I mean:
quhyperlink() directly print the formated hyperlink. Why not write a function just return the result?
Should be something like:
[CODE]
function gimme_quhyperlink() {
//PHP BLABLA
}
function send_quhyperlink() {
print gimme_quhyperlink();
}
[/CODE]
If you do so for all quTags, it will give it a powerful loopback feature. And it seems easy to do.

See our discussion on the forum here: https://sourceforge.net/forum/message.php?msg_id=4405391

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.