Page 1 of 1

[SOLVED] debug_to_log() $title param ignored in CMSMS 2.0

Posted: Wed Sep 09, 2015 3:07 am
by fredp
Hi,

I'm upgrading my modules to be CMSMS 2.0 compatible and I noticed that the debug_to_log() function no longer prints the $title parameter to the output file, as it did in CMSMS 1.x. I can work-around this change, but thought I would mention it as it seems this may have been unintentional.

If you look at line 564 of lib/misc.functions.php, you'll see that debug_display() is called with the (new in 2.0) $showtitle parameter explicitly set to false:

Code: Select all

  $errlines = explode("\n",debug_display($var, $title, false, false));
It seems odd to always ignore $title, but maybe I'm missing something.

Let me know if you would like me to submit a bug report.

Also, thanks for all the hard work on CMSMS 2.0!!

Re: debug_to_log() $title param ignored in CMSMS 2.0

Posted: Tue Sep 29, 2015 4:02 pm
by calguy1000
Fixed for the upcoming 2.0.1

Re: [SOLVED] debug_to_log() $title param ignored in CMSMS 2.

Posted: Sun Oct 04, 2015 6:33 am
by fredp
Thanks for the quick fix!!