fix deprecated coursecat calls. & Do not try to get categID form course catalogue homepage, there is none.