Update x2engine/protected/models/APIModel.php