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

Fix Owners package specificity ordering

Summary: This algorithm isn't quite right with respect to ordering more-specific packages correctly.

Test Plan: {F729864}

Reviewers: chad

Reviewed By: chad

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

+5 -2
+5 -2
src/applications/owners/storage/PhabricatorOwnersPackage.php
··· 230 230 } 231 231 232 232 public static function splitPath($path) { 233 - $result = array('/'); 234 233 $trailing_slash = preg_match('@/$@', $path) ? '/' : ''; 235 234 $path = trim($path, '/'); 236 235 $parts = explode('/', $path); 236 + 237 + $result = array(); 237 238 while (count($parts)) { 238 239 $result[] = '/'.implode('/', $parts).$trailing_slash; 239 240 $trailing_slash = '/'; 240 241 array_pop($parts); 241 242 } 242 - return $result; 243 + $result[] = '/'; 244 + 245 + return array_reverse($result); 243 246 } 244 247 245 248 public function attachPaths(array $paths) {