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

Minor, fix a resource include order issue.

+6 -6
+1 -3
src/view/page/AphrontPageView.php
··· 62 62 $this->willRenderPage(); 63 63 64 64 $title = phutil_escape_html($this->getTitle()); 65 + $head = $this->getHead(); 65 66 $body = $this->getBody(); 66 67 $tail = $this->getTail(); 67 - // NOTE: Render HEAD last so we can pick up resources required by the other 68 - // parts. 69 - $head = $this->getHead(); 70 68 71 69 $body_classes = $this->getBodyClasses(); 72 70
+5 -3
src/view/page/PhabricatorStandardPageView.php
··· 24 24 private $selectedTab; 25 25 private $glyph; 26 26 private $bodyContent; 27 + private $menuContent; 27 28 private $request; 28 29 private $isAdminInterface; 29 30 private $showChrome = true; ··· 168 169 'header' => AphrontRequest::getCSRFHeaderName(), 169 170 'current' => $current_token, 170 171 )); 172 + Javelin::initBehavior('device', array('id' => 'base-page')); 171 173 172 174 if ($console) { 173 175 require_celerity_resource('aphront-dark-console-css'); ··· 182 184 require_celerity_resource('javelin-behavior-error-log'); 183 185 } 184 186 187 + $this->menuContent = $this->renderMainMenu(); 185 188 $this->bodyContent = $this->renderChildren(); 186 189 } 187 190 ··· 361 364 $header_chrome = null; 362 365 $footer_chrome = null; 363 366 if ($this->getShowChrome()) { 364 - $header_chrome = $this->renderMainMenu(); 367 + $header_chrome = $this->menuContent; 365 368 $footer_chrome = 366 369 '<div class="phabricator-page-foot">'. 367 370 $foot_links. ··· 378 381 '</div>'; 379 382 } 380 383 381 - Javelin::initBehavior('device', array('id' => 'base-page')); 382 384 $agent = idx($_SERVER, 'HTTP_USER_AGENT'); 383 385 384 386 // Try to guess the device resolution based on UA strings to avoid a flash ··· 450 452 'id' => $aphlict_container_id, 451 453 'style' => 'position: absolute; width: 0; height: 0;', 452 454 ), 453 - 'asdb'); 455 + ''); 454 456 } 455 457 456 458 $response = CelerityAPI::getStaticResourceResponse();