fix requires in dis/favor and correct url in form

darcs-hash:20080908182559-84dde-27b288efd341a4dd148abb641064d9e48ca2aa11.gz
This commit is contained in:
Evan Prodromou 2008-09-08 14:25:59 -04:00
parent c47a576f6c
commit 59ef19b7d3
3 changed files with 2 additions and 4 deletions

View File

@ -19,8 +19,6 @@
if (!defined('LACONICA')) { exit(1); }
require_once($INSTALLDIR.'/lib/mail.php');
class DisfavorAction extends Action {
function handle($args) {

View File

@ -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 {

View File

@ -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, '♡');