Set visibility of 2 properties to public
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 25 Nov 2013 13:22:25 +0000 (14:22 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 25 Nov 2013 13:22:25 +0000 (14:22 +0100)
Set visibility of $fetchDescription and $descriptionCacheExpiry to public.
These two class properties are directly referenced outside an inheritance
scope.

Bug: 57535
Change-Id: I4e91418f1e2374ebe83ea4310d13ad254fc3dac1

includes/filerepo/FileRepo.php

index 8235344..d26191c 100644 (file)
@@ -71,7 +71,7 @@ class FileRepo {
        protected $articleUrl;
 
        /** @var bool Whether to fetch commons image description pages and display them on the local wiki */
-       protected $fetchDescription;
+       public $fetchDescription;
 
        /** @var bool Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],
         *    determines whether filenames implicitly start with a capital letter.
@@ -88,7 +88,7 @@ class FileRepo {
        protected $pathDisclosureProtection = 'simple';
 
        /** @var int */
-       protected $descriptionCacheExpiry;
+       public $descriptionCacheExpiry;
 
        /** @var bool Public zone URL. */
        protected $url;