require_once('../functions/prefs.php'); was needed to use getPref