diff --git a/main.inc.php b/main.inc.php
index 3660625d6b1280b9e7b2ab7b836cbf8ce5f23399..8fbe9c3171ab90dd307efda94192d8ad3c8f742d 100644
--- a/main.inc.php
+++ b/main.inc.php
@@ -55,7 +55,10 @@
     define('INCLUDE_DIR',ROOT_DIR.'include/'); //Change this if include is moved outside the web path.
     define('PEAR_DIR',INCLUDE_DIR.'pear/');
     define('SETUP_DIR',INCLUDE_DIR.'setup/');
-  
+
+    define('UPGRADE_DIR', INCLUDE_DIR.'upgrader/');
+    define('PATCH_DIR', UPGRADE_DIR.'patches/');
+
     /*############## Do NOT monkey with anything else beyond this point UNLESS you really know what you are doing ##############*/
 
     #Current version && schema signature (Changes from version to version)