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:

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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support