Why not just set
$wgGroupPermissions['user']['createpage'] = false;
?
Frank Fulchiero wrote:
I discovered that even though I have the following in
LocalSettings.php
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['user']['createpage'] = true;
anonymous users are still able to create new pages....