summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/fixup_hashtags.php (renamed from fixup_hashtags.php)2
-rwxr-xr-xscripts/fixup_notices_rendered.php (renamed from fixup_notices_rendered.php)2
-rwxr-xr-xscripts/fixup_replies.php (renamed from fixup_replies.php)2
-rwxr-xr-xscripts/maildaemon.php (renamed from maildaemon.php)2
-rw-r--r--scripts/sitemap.php (renamed from sitemap.php)2
-rwxr-xr-xscripts/xmppdaemon.php (renamed from xmppdaemon.php)2
6 files changed, 6 insertions, 6 deletions
diff --git a/fixup_hashtags.php b/scripts/fixup_hashtags.php
index 04f50afdf..88f385798 100755
--- a/fixup_hashtags.php
+++ b/scripts/fixup_hashtags.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/fixup_notices_rendered.php b/scripts/fixup_notices_rendered.php
index 53f9b1b16..7b29f0d23 100755
--- a/fixup_notices_rendered.php
+++ b/scripts/fixup_notices_rendered.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/fixup_replies.php b/scripts/fixup_replies.php
index 51ecf7afa..6010e21d1 100755
--- a/fixup_replies.php
+++ b/scripts/fixup_replies.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/maildaemon.php b/scripts/maildaemon.php
index 0a96bfeb4..3d3b30951 100755
--- a/maildaemon.php
+++ b/scripts/maildaemon.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/sitemap.php b/scripts/sitemap.php
index c35a382a0..fbfd14e19 100644
--- a/sitemap.php
+++ b/scripts/sitemap.php
@@ -1,6 +1,6 @@
<?php
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/xmppdaemon.php b/scripts/xmppdaemon.php
index 37b349f58..43f2b6aae 100755
--- a/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -53,7 +53,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');