diff --git a/ShibAuthPlugin.php b/ShibAuthPlugin.php
index 32a3416f20050e1c9b59c56e21a128437eaf5f80..ed571f4615ff56e5eadc6bff56da9629a517939d 100644
--- a/ShibAuthPlugin.php
+++ b/ShibAuthPlugin.php
@@ -388,7 +388,7 @@ function ShibUserLoadFromSession($user, &$result)
          * most of what you need.  Creating a loginform is a very very small
          * part of this object.
          */
-        require_once('includes/specials/SpecialUserlogin.php');
+        require_once("$IP/includes/specials/SpecialUserlogin.php");
 
         //This section contains a silly hack for MW
         global $wgLang;