Fork me on GitHub

pnVar... to DataUtil  Bottom

  • when I turn on logging in my dev environment, I get errors like this one:

    Code

    function pnVarPrepForOS() is deprecated. Please use DataUtil::formatForOS() instead.

    I know how to take care of those issues in the PHP code, but what Smarty modifier do I use in place of that? e.g. in place of

    Code

    <!--[$myvar|pnvarprepfordisplay]-->
  • Code

    <!--[$myvar|pnvarprepfordisplay]-->

    That is the right way. The Smarty modifier uses DataUtil:

    Code

    function smarty_modifier_pnvarprepfordisplay ($string)
    {
        return DataUtil::formatForDisplay($string);
    }
  • hmmm. so it is. Thanks. I wonder what I am seeing then... I guess I'll have to dig deeper. icon_confused

This list is based on users active over the last 60 minutes.