forked from GNUsocial/gnu-social
		
	fix requires in dis/favor and correct url in form
darcs-hash:20080908182559-84dde-27b288efd341a4dd148abb641064d9e48ca2aa11.gz
This commit is contained in:
		| @@ -19,8 +19,6 @@ | ||||
|  | ||||
| if (!defined('LACONICA')) { exit(1); } | ||||
|  | ||||
| require_once($INSTALLDIR.'/lib/mail.php'); | ||||
|  | ||||
| class DisfavorAction extends Action { | ||||
|  | ||||
| 	function handle($args) { | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
|  | ||||
| if (!defined('LACONICA')) { exit(1); } | ||||
|  | ||||
| require_once($INSTALLDIR.'/lib/mail.php'); | ||||
| require_once(INSTALLDIR.'/lib/mail.php'); | ||||
|  | ||||
| class FavorAction extends Action { | ||||
|  | ||||
|   | ||||
| @@ -1560,7 +1560,7 @@ function common_disfavor_form($notice) { | ||||
| function common_favor_form($notice) { | ||||
| 	common_element_start('form', array('id' => 'favor-' . $notice->id, | ||||
| 									   'method' => 'post', | ||||
| 									   'action' => common_local_url('disfavor'))); | ||||
| 									   'action' => common_local_url('favor'))); | ||||
| 	common_hidden('token', common_session_token()); | ||||
| 	common_hidden('notice', $notice->id); | ||||
| 	common_submit('favor-submit-' . $notice->id, '♡'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user