Disable protection in case there aren't any restriction types
authorMarius Hoch <hoo@online.de>
Thu, 22 Nov 2012 21:04:40 +0000 (22:04 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 7 Jan 2013 13:26:59 +0000 (14:26 +0100)
commit19973572dd7ffb506506a3a3ee97749d86b20e63
tree15971e2ef4da43b2d8cd404f2167535cdc174104
parent22bfd9887e2f2ce087b3e002279d78c6312f7ceb
Disable protection in case there aren't any restriction types

This change disables the protection form and hides the protect
links in case there aren't any restriction types avialable.
Having no restriction types available let to a PHP notice and an
uggly, broken form. This became necessary as there are cases
in which no restriction types are avialable (caused by extensions)
eg. https://gerrit.wikimedia.org/r/34662

Change-Id: I0e5d3cfb299808ca14ead6baec0a18091acaa2b2
includes/ProtectionForm.php
includes/SkinLegacy.php
includes/SkinTemplate.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc