From 59ef19b7d3fa6aa326cebf528a30dcae42631204 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Sep 2008 14:25:59 -0400 Subject: [PATCH] fix requires in dis/favor and correct url in form darcs-hash:20080908182559-84dde-27b288efd341a4dd148abb641064d9e48ca2aa11.gz --- actions/disfavor.php | 2 -- actions/favor.php | 2 +- lib/util.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/actions/disfavor.php b/actions/disfavor.php index 59807f5e6b..467a52df5d 100644 --- a/actions/disfavor.php +++ b/actions/disfavor.php @@ -19,8 +19,6 @@ if (!defined('LACONICA')) { exit(1); } -require_once($INSTALLDIR.'/lib/mail.php'); - class DisfavorAction extends Action { function handle($args) { diff --git a/actions/favor.php b/actions/favor.php index f192321f90..10ad6b809d 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -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 { diff --git a/lib/util.php b/lib/util.php index 70894aeffb..2da767a044 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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, '♡'); -- 2.39.5