Commit 96121dbb authored by Dries's avatar Dries

- Small refinement with regard to the page title.

parent 36c0cda2
......@@ -52,7 +52,10 @@ function tracker_menu($may_cache) {
* Menu callback. Prints a listing of active nodes on the site.
*/
function tracker_track_user() {
tracker_page(arg(1));
if ($account = user_load(array('uid' => arg(1)))) {
drupal_set_title($account->name);
tracker_page($account->uid);
}
}
/**
......
......@@ -52,7 +52,10 @@ function tracker_menu($may_cache) {
* Menu callback. Prints a listing of active nodes on the site.
*/
function tracker_track_user() {
tracker_page(arg(1));
if ($account = user_load(array('uid' => arg(1)))) {
drupal_set_title($account->name);
tracker_page($account->uid);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment