@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.

Use the default skin if a blog has a set but no-longer-available skin

Summary: I set one of my blogs to "phacility.com" based on `arc patch` and it now fatals since that's not a valid class anymore. :P Recover from these cases.

Test Plan: Viewed blog, no missing symbole exception.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1373

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

+8 -2
+8 -2
src/applications/phame/storage/PhameBlog.php
··· 53 53 } 54 54 55 55 public function getSkinRenderer() { 56 - $skin = $this->getSkin(); 56 + try { 57 + $skin = newv($this->getSkin(), array()); 58 + } catch (PhutilMissingSymbolException $ex) { 59 + // If this blog has a skin but it's no longer available (for example, 60 + // it was uninstalled) just return the default skin. 61 + $skin = newv(self::SKIN_DEFAULT, array()); 62 + } 57 63 58 - return new $skin(); 64 + return $skin; 59 65 } 60 66 61 67 /**