Add missing access modifiers in UploadBase
authoraddshore <addshorewiki@gmail.com>
Tue, 21 Feb 2017 16:49:05 +0000 (16:49 +0000)
committeraddshore <addshorewiki@gmail.com>
Tue, 21 Feb 2017 16:49:05 +0000 (16:49 +0000)
Change-Id: Ia7a755ec3871f786b440005003f05ed91c14ce5b

includes/upload/UploadBase.php

index 79166ef..028a5f6 100644 (file)
@@ -297,7 +297,7 @@ abstract class UploadBase {
         * @param string $srcPath The source path
         * @return string|bool The real path if it was a virtual URL Returns false on failure
         */
-       function getRealPath( $srcPath ) {
+       public function getRealPath( $srcPath ) {
                $repo = RepoGroup::singleton()->getLocalRepo();
                if ( $repo->isVirtualUrl( $srcPath ) ) {
                        /** @todo Just make uploads work with storage paths UploadFromStash
@@ -560,7 +560,7 @@ abstract class UploadBase {
         *
         * @param array $entry
         */
-       function zipEntryCallback( $entry ) {
+       public function zipEntryCallback( $entry ) {
                $names = [ $entry['name'] ];
 
                // If there is a null character, cut off the name at it, because JDK's