summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/disfavor.php2
-rw-r--r--actions/favor.php2
-rw-r--r--lib/util.php2
3 files changed, 2 insertions, 4 deletions
diff --git a/actions/disfavor.php b/actions/disfavor.php
index 59807f5e6..467a52df5 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 f192321f9..10ad6b809 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 70894aeff..2da767a04 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, '♡');