Help with some deprecated code - Joomla! Forum - community, help and support
i'm upgrading old unsupported extension self taught coder , need on function. jresponse deprecated , japplicationweb should used. old function below - how written japplicationweb?
code: select all
function onafterrender()
{
if($this->oktosend)
{
$body = jresponse::getbody();
$pos = strpos($body, 'hikashop_banktransfer_end');
$replace = $this->contents.'your order complete.<br/>thank purchase.';
jresponse::setbody($body);
}
}
all need replace jresponse japplicationweb. need replace:
with:
and
with
code: select all
$body = jresponse::getbody();
with:
code: select all
japplicationweb::getbody();
and
code: select all
jresponse::setbody($body);
with
code: select all
japplicationweb::setbody();
Comments
Post a Comment