From: rahul21 Date: Fri, 29 Mar 2013 10:38:32 +0000 (+0530) Subject: Protected function UploadBase->validateName changed to public X-Git-Tag: 1.31.0-rc.0~20088^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=ced901634feafad060e41c93116b0902b1319fc4;p=lhc%2Fweb%2Fwiklou.git Protected function UploadBase->validateName changed to public *Any class that is not part of the UploadBase class (so it can't call protected functions or members on an UploadBase object). If you, for example,build an extension that uses an UploadBase instance, there is no way to get the title validation error. Bug: 38221 Change-Id: Ie6c3f95a09ef84777313c3ec2edd31c50c397e28 --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 3a37f11c92..e8151b2f41 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -330,7 +330,7 @@ abstract class UploadBase { * @return mixed true if valid, otherwise and array with 'status' * and other keys **/ - protected function validateName() { + public function validateName() { $nt = $this->getTitle(); if( is_null( $nt ) ) { $result = array( 'status' => $this->mTitleError );