diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index b8ebfebdc..c82c28411 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -38,7 +38,7 @@
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
-global $dirname;
+
require_once NOALYSS_INCLUDE."/lib/ac_common.php";
global $http;