Update lib/functions/global.php