@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove phame.skins config option

Summary: Removes an unneeded config. Ref T9897

Test Plan: New Blog, View Blog live.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9897

Differential Revision: https://secure.phabricator.com/D14714

+6 -43
-2
src/__phutil_library_map__.php
··· 2675 2675 'PhabricatorPhabricatorAuthProvider' => 'applications/auth/provider/PhabricatorPhabricatorAuthProvider.php', 2676 2676 'PhabricatorPhameApplication' => 'applications/phame/application/PhabricatorPhameApplication.php', 2677 2677 'PhabricatorPhameBlogPHIDType' => 'applications/phame/phid/PhabricatorPhameBlogPHIDType.php', 2678 - 'PhabricatorPhameConfigOptions' => 'applications/phame/config/PhabricatorPhameConfigOptions.php', 2679 2678 'PhabricatorPhamePostPHIDType' => 'applications/phame/phid/PhabricatorPhamePostPHIDType.php', 2680 2679 'PhabricatorPhluxApplication' => 'applications/phlux/application/PhabricatorPhluxApplication.php', 2681 2680 'PhabricatorPholioApplication' => 'applications/pholio/application/PhabricatorPholioApplication.php', ··· 6885 6884 'PhabricatorPhabricatorAuthProvider' => 'PhabricatorOAuth2AuthProvider', 6886 6885 'PhabricatorPhameApplication' => 'PhabricatorApplication', 6887 6886 'PhabricatorPhameBlogPHIDType' => 'PhabricatorPHIDType', 6888 - 'PhabricatorPhameConfigOptions' => 'PhabricatorApplicationConfigOptions', 6889 6887 'PhabricatorPhamePostPHIDType' => 'PhabricatorPHIDType', 6890 6888 'PhabricatorPhluxApplication' => 'PhabricatorApplication', 6891 6889 'PhabricatorPholioApplication' => 'PhabricatorApplication',
-36
src/applications/phame/config/PhabricatorPhameConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorPhameConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Phame'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Phame blogs.'); 12 - } 13 - 14 - public function getFontIcon() { 15 - return 'fa-star'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption( 25 - 'phame.skins', 26 - 'list<string>', 27 - array( 28 - 'externals/skins/', 29 - )) 30 - ->setLocked(true) 31 - ->setDescription( 32 - pht('List of directories where Phame will look for skins.')), 33 - ); 34 - } 35 - 36 - }
+6 -5
src/applications/phame/skins/PhameSkinSpecification.php
··· 2 2 3 3 final class PhameSkinSpecification extends Phobject { 4 4 5 - const TYPE_ADVANCED = 'advanced'; 6 - const TYPE_BASIC = 'basic'; 5 + const TYPE_ADVANCED = 'advanced'; 6 + const TYPE_BASIC = 'basic'; 7 + const SKIN_PATH = 'externals/skins/'; 7 8 8 9 private $type; 9 10 private $rootDirectory; ··· 16 17 static $specs; 17 18 18 19 if ($specs === null) { 19 - $paths = PhabricatorEnv::getEnvConfig('phame.skins'); 20 + $paths = array(self::SKIN_PATH); 20 21 $base = dirname(phutil_get_library_root('phabricator')); 21 22 22 23 $specs = array(); ··· 48 49 $name, 49 50 $this_dir, 50 51 $that_dir, 51 - 'phame.skins')); 52 + self::SKIN_PATH)); 52 53 } 53 54 54 55 $specs[$name] = $spec; ··· 70 71 $name)); 71 72 } 72 73 73 - $paths = PhabricatorEnv::getEnvConfig('phame.skins'); 74 + $paths = array(self::SKIN_PATH); 74 75 $base = dirname(phutil_get_library_root('phabricator')); 75 76 foreach ($paths as $path) { 76 77 $path = Filesystem::resolvePath($path, $base);