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

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Locked
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am
Location: USA

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

Post 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!!
Last edited by fredp on Sun Oct 04, 2015 6:30 am, edited 1 time in total.
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

Fixed for the upcoming 2.0.1
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am
Location: USA

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

Post by fredp »

Thanks for the quick fix!!
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
Locked

Return to “Developers Discussion”