Fixed compatibility with mw 1.23.1

With the latest mediawiki, your extension was causing a warning due to using the variable $rights on line 226 before it was declared. Added declaration $rights variable.