diff --git a/core/ajax/update.php b/core/ajax/update.php
index 5fca18088913a7a39eeeb8e58c2b2e20a7498eca..627ada080c87c6cdab4493c43025a4c79be43aff 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -1,5 +1,6 @@
 <?php
 set_time_limit(0);
+require_once '../../lib/base.php';
 
 if (OC::checkUpgrade(false)) {
 	$l = new \OC_L10N('core');