]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix requires in dis/favor and correct url in form
authorEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:25:59 +0000 (14:25 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:25:59 +0000 (14:25 -0400)
darcs-hash:20080908182559-84dde-27b288efd341a4dd148abb641064d9e48ca2aa11.gz

actions/disfavor.php
actions/favor.php
lib/util.php

index 59807f5e6b83eb06e92623772273e8847ea43f51..467a52df5d88602b7afcdbf110740c3a1d33b433 100644 (file)
@@ -19,8 +19,6 @@
 
 if (!defined('LACONICA')) { exit(1); }
 
-require_once($INSTALLDIR.'/lib/mail.php');
-
 class DisfavorAction extends Action {
 
        function handle($args) {
index f192321f909444c083c3c4820c362e49f87afde3..10ad6b809df929707f65b47f9858cd22ac7f9eaa 100644 (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 {
 
index 70894aeffbd3611b7c4d8b0bb6fe472daf0a8dfb..2da767a04400ceaf7ff191ea63144a755f90e432 100644 (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, '♡');