diff --git a/lib/base.php b/lib/base.php
index 6305da169306a6f1cb7bfcac28ce3b4f6e37a9ae..51f8f4efc5b05269eb56d8b0d4e5c24c361d8aaf 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -100,7 +100,7 @@ class OC{
 		}
 
 		if($fullPath = stream_resolve_include_path($path)) {
-			require_once $path;
+			require_once $fullPath;
 		}
 		return false;
 	}