Added update method to globals.php