summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-08 14:25:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-08 14:25:59 -0400
commit59ef19b7d3fa6aa326cebf528a30dcae42631204 (patch)
treeb3e58306296f485b803a158e22311284a7a7ca3f
parentc47a576f6c15f1b59206c8b8d6470f4fb505e5a4 (diff)
fix requires in dis/favor and correct url in form
darcs-hash:20080908182559-84dde-27b288efd341a4dd148abb641064d9e48ca2aa11.gz
-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, '♡');