Skip to content
Snippets Groups Projects
Commit 96121dbb authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Small refinement with regard to the page title.

parent 36c0cda2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -52,7 +52,10 @@ function tracker_menu($may_cache) { ...@@ -52,7 +52,10 @@ function tracker_menu($may_cache) {
* Menu callback. Prints a listing of active nodes on the site. * Menu callback. Prints a listing of active nodes on the site.
*/ */
function tracker_track_user() { 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) { ...@@ -52,7 +52,10 @@ function tracker_menu($may_cache) {
* Menu callback. Prints a listing of active nodes on the site. * Menu callback. Prints a listing of active nodes on the site.
*/ */
function tracker_track_user() { 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);
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment