make mod-follow "get"-able
This commit is contained in:
parent
5d6a098ce0
commit
622886a33c
2 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_once('Scrape.php');
|
||||
|
||||
function follow_post(&$a) {
|
||||
function follow_init(&$a) {
|
||||
|
||||
if(! local_user()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
|
@ -202,7 +202,9 @@ function follow_post(&$a) {
|
|||
}
|
||||
}
|
||||
|
||||
goaway($a->get_baseurl() . '/contacts/' . $contact_id);
|
||||
// goaway($_SESSION['return_url']);
|
||||
if(strstr($_SESSION['return_url'],'contacts'))
|
||||
goaway($a->get_baseurl() . '/contacts/' . $contact_id);
|
||||
|
||||
goaway($_SESSION['return_url']);
|
||||
// NOTREACHED
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue