In all cases where fences are built upon township lines, between townships in one of which hogs are prohibited from running at large and in the other of which they are not prohibited from running at large, such fence shall be built in the manner prescribed in the first article of this act* for fences in townships where hogs are not prohibited from running at large: Provided, That the owner of any hogs shall be liable for all damages sustained by any person in consequence of such hogs crossing such township lines by way of the highway.
K.S.A. 29-318