Update default.php

Changed to use JRegistry in place of JObject for the local variable $xmldata.