Closed (fixed)
Project:
MySite
Version:
4.7.x-3.9
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2007 at 06:31 UTC
Updated:
16 Apr 2007 at 18:08 UTC
The link Create your own mysite links to something like: www.example.com/mysite//edit (shows when hovering the link) missing the userid between "mysite//edit".
This error is due to the variable $owner->uid, used in the following function.
function theme_mysite_block_help() {
global $user;
if (user_access('edit mysite')) {
$output = l(t('Create your own mysite'), "mysite/". $owner->uid. '/edit');
return $output;
}
}
I tried the $user->uid instead of $owner->uid and the problem is solved. So if anybody else is facing the same problem just change the above function to the following one...
function theme_mysite_block_help() {
global $user;
if (user_access('edit mysite')) {
$output = l(t('Create your own mysite'), "mysite/". $user->uid . '/edit');
return $output;
}
}
Comments
Comment #1
agentrickardYup. That's a bug alright.
Fixed in 4.7.x.3-dev, 5.x.1-dev. I fixed this in HEAD back on 03-APR-2007.
Thanks for the report!
Comment #2
agentrickardTurns out I've accidentally been comitting 4.7 changes to 4.7.x.1-dev instead of 4.7.x.3-dev. This error has been corrected.
New release 4.7.x.3.10 fixes this issue.
Comment #3
agentrickard