has_extension used in SS 3.1 way

Only line 10 is changed, don't know why GIT says 81 lines changed...