diff --git a/plugins/ActivitySpam/scripts/testuser.php b/plugins/ActivitySpam/scripts/testuser.php
index 357e04a7c2..0b776bd42b 100644
--- a/plugins/ActivitySpam/scripts/testuser.php
+++ b/plugins/ActivitySpam/scripts/testuser.php
@@ -17,7 +17,7 @@
* along with this program. If not, see .
*/
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../../..'));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
$shortoptions = 'i:n:a';
$longoptions = array('id=', 'nickname=', 'all');
diff --git a/plugins/ActivitySpam/scripts/trainuser.php b/plugins/ActivitySpam/scripts/trainuser.php
index 3399e751ba..f3739ac7b8 100644
--- a/plugins/ActivitySpam/scripts/trainuser.php
+++ b/plugins/ActivitySpam/scripts/trainuser.php
@@ -17,7 +17,7 @@
* along with this program. If not, see .
*/
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../../..'));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
$shortoptions = 'i:n:t:';
$longoptions = array('id=', 'nickname=', 'category=');