Hook files inclusion moved to session.inc
[fa-stable.git] / includes / session.inc
index 2424b57421a2af8036767644be1a1396fd2a3a3f..261f8914684262a22c3d842646dcd032c369770e 100644 (file)
@@ -182,6 +182,15 @@ include_once($path_to_root . "/includes/ui/ui_msgs.inc");
 include_once($path_to_root . "/includes/prefs/sysprefs.inc");
 
 include_once($path_to_root . "/includes/hooks.inc");
+//
+// include all extensions hook files.
+//
+foreach ($installed_extensions as $ext)
+{
+       if (file_exists($path_to_root.'/'.$ext['path'].'/hooks.php'))
+               include_once($path_to_root.'/'.$ext['path'].'/hooks.php');
+}
+
 
 /*
        Uncomment the setting below when using FA on shared hosting