We should use arg() instead.

CommentFileSizeAuthor
q.patch2.22 KBrobloach

Comments

dave reid’s picture

Actually current_path() is the preferred function compared to arg().

msonnabaum’s picture

I'm fine with this for the module, but I dont want to touch any of the code in xhprof.inc unless its a bug fix. That file contains hacked up versions of the original non-drupal xhprof ui that are pretty ugly.

xhprof.inc will be removed in the next version in favor of https://github.com/msonnabaum/xhproflib.

amateescu’s picture

Status: Needs review » Fixed

The 8.x-1.x was broken without this change, so I committed a fix for 8.x-1.x and 7.x-1.x.

http://drupalcode.org/project/XHProf.git/commit/6bfbbc6
http://drupalcode.org/project/XHProf.git/commit/a4b9863

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.