correct action for showfavorites in disfavor
darcs-hash:20080908182716-84dde-fad2159212dd427d596a8ace7aa4032be8446799.gz
This commit is contained in:
parent
59ef19b7d3
commit
dd4c0ebaa8
|
@ -33,7 +33,7 @@ class DisfavorAction extends Action {
|
||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
|
||||||
common_redirect(common_local_url('favorites', array('nickname' => $user->nickname)));
|
common_redirect(common_local_url('showfavorites', array('nickname' => $user->nickname)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ class DisfavorAction extends Action {
|
||||||
|
|
||||||
# XXX: ajax response
|
# XXX: ajax response
|
||||||
|
|
||||||
common_redirect(common_local_url('favorites',
|
common_redirect(common_local_url('showfavorites',
|
||||||
array('nickname' => $user->nickname)));
|
array('nickname' => $user->nickname)));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user