Merge branch '0.8.x' into groupblock
Conflicts: lib/router.php
This commit is contained in:
		| @@ -180,7 +180,7 @@ class BlockAction extends Action | ||||
|         if ($action) { | ||||
|             common_redirect(common_local_url($action, $args), 303); | ||||
|         } else { | ||||
|             common_redirect(common_local_url('subscriptions', | ||||
|             common_redirect(common_local_url('subscribers', | ||||
|                                              array('nickname' => $cur->nickname)), | ||||
|                             303); | ||||
|         } | ||||
|   | ||||
| @@ -320,10 +320,14 @@ class ShowstreamAction extends ProfileAction | ||||
|             $blocked = $cur->hasBlocked($this->profile); | ||||
|             $this->elementStart('li', 'entity_block'); | ||||
|             if ($blocked) { | ||||
|                 $ubf = new UnblockForm($this, $this->profile); | ||||
|                 $ubf = new UnblockForm($this, $this->profile, | ||||
|                                        array('action' => 'showstream', | ||||
|                                              'nickname' => $this->profile->nickname)); | ||||
|                 $ubf->show(); | ||||
|             } else { | ||||
|                 $bf = new BlockForm($this, $this->profile); | ||||
|                 $bf = new BlockForm($this, $this->profile, | ||||
|                                     array('action' => 'showstream', | ||||
|                                           'nickname' => $this->profile->nickname)); | ||||
|                 $bf->show(); | ||||
|             } | ||||
|             $this->elementEnd('li'); | ||||
|   | ||||
| @@ -118,7 +118,7 @@ class UnblockAction extends Action | ||||
|         if ($action) { | ||||
|             common_redirect(common_local_url($action, $args), 303); | ||||
|         } else { | ||||
|             common_redirect(common_local_url('subscriptions', | ||||
|             common_redirect(common_local_url('subscribers', | ||||
|                                              array('nickname' => $cur->nickname)), | ||||
|                             303); | ||||
|         } | ||||
|   | ||||
| @@ -101,7 +101,7 @@ class Router | ||||
|         $main = array('login', 'logout', 'register', 'subscribe', | ||||
|                       'unsubscribe', 'confirmaddress', 'recoverpassword', | ||||
|                       'invite', 'favor', 'disfavor', 'sup', | ||||
|                       'block', 'subedit', 'groupblock'); | ||||
|                       'block', 'unblock', 'subedit', 'groupblock'); | ||||
|  | ||||
|         foreach ($main as $a) { | ||||
|             $m->connect('main/'.$a, array('action' => $a)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user