@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
at upstream/main 22 lines 547 B view raw
1<?php 2 3abstract class PhabricatorPasteController extends PhabricatorController { 4 5 public function buildApplicationMenu() { 6 return $this->newApplicationMenu() 7 ->setSearchEngine(new PhabricatorPasteSearchEngine()); 8 } 9 10 public function buildSourceCodeView( 11 PhabricatorPaste $paste, 12 $highlights = array()) { 13 14 $lines = phutil_split_lines($paste->getContent()); 15 16 return id(new PhabricatorSourceCodeView()) 17 ->setLines($lines) 18 ->setHighlights($highlights) 19 ->setURI(new PhutilURI($paste->getURI())); 20 } 21 22}