Bug 356077 - "Changes to Firefox Party tool" [p=rflint@dslr.net]

git-svn-id: svn://10.0.0.236/trunk@213456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2006-10-10 20:19:01 +00:00
parent 5d87829876
commit 2d14b8b7fc
15 changed files with 167 additions and 65 deletions

View File

@@ -138,7 +138,7 @@ class UsersController extends AppController {
}
}
function edit($id) {
function edit() {
if (!isset($_SESSION['User'])) {
$this->redirect('/users/login');
}
@@ -271,10 +271,10 @@ class UsersController extends AppController {
$this->pageTitle = $user['User']['name'];
$this->set('user', $user);
if (GMAP_API_KEY != null && !empty($user['User']['lat']))
$this->set('map', $user['User']['lat'].','.$user['User']['long'].','.$user['User']['zoom'].',\'stationary\'');
$this->set('map', 'mapInit('.$user['User']['lat'].','.$user['User']['long'].','.$user['User']['zoom'].',\'stationary\');');
$this->Party->unbindModel(array('hasMany' => array('Comment')));
$this->set('hparties', $this->Party->findByOwner($id));
$this->set('hparties', $this->User->hostOf($id));
$att = $this->User->query('SELECT parties.id, parties.name
FROM parties
LEFT JOIN guests