Section 2. The said board may appoint one person, learned in the law, as solicitor of said board to advise it upon all legal matters pertaining to its duties. The salary of said solicitor shall be fixed by the salary board of the county and shall be paid by the county.