When any fence has been, or shall hereafter be, erected by any person on the boundary line of his or her land and the person owning land adjoining thereto shall make, or cause to be made, an inclosure, so that such fence may also answer the purpose of inclosing his or her ground, he or she shall pay the owner of such fence already erected one-half of the value of so much thereof as serves for a partition fence between them: PROVIDED, That in case such fence has woven wire or other material known as hog fencing, then the adjoining owner shall not be required to pay the extra cost of such hog fencing over and above the cost of erecting a lawful fence, as by law defined, unless such adjoining owner has his or her land fenced with hog fencing and uses the partition fence to make a hog enclosure of his or her land, then he or she shall pay to the one who owns said hog fence one-half of the value thereof.