Only load old page_restrictions field if $oldFashionedRestrictions is really null...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 29 Apr 2008 19:18:58 +0000 (19:18 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 29 Apr 2008 19:18:58 +0000 (19:18 +0000)
commit9b748e7588ef0072b92a7719a4b459d49c3a3367
tree516389bd880f2ee4ae3def09b9602361f2bc2380
parent96d5cac4066b86333ab03ecc4b00559ba479ccf8
Only load old page_restrictions field if $oldFashionedRestrictions is really null, not also if it's a empty string, wich is passed from Article::loadPageData() in most of cases. This avoid to load twice that field from the database. Thank you, PHP.
includes/Title.php