Something went wrong. Try again.
@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
Something went wrong. Try again.
PHP
123456789101112131415161718192021222324252627282930313233343536373839404142<?php
final class Aphront404Response extends AphrontHTMLResponse {
public function getHTTPResponseCode() { return 404; }
public function buildResponseString() { $request = $this->getRequest(); $viewer = $request->getViewer();
// See T13636. Note that this response may be served from a Site other than // the primary PlatformSite. For now, always link to the PlatformSite.
// (This may not be the best possible place to send users who are currently // on "real" sites, like the BlogSite.) $return_uri = PhabricatorEnv::getURI('/');
$dialog = id(new AphrontDialogView()) ->setViewer($viewer) ->setTitle(pht('404 Not Found')) ->addCancelButton($return_uri, pht('Return to Charted Waters')) ->appendParagraph( pht( 'You arrive at your destination, but there is nothing here.')) ->appendParagraph( pht( 'Perhaps the real treasure was the friends you made '. 'along the way.'));
$view = id(new PhabricatorStandardPageView()) ->setTitle(pht('404 Not Found')) ->setRequest($request) ->setDeviceReady(true) ->appendChild($dialog);
return $view->render(); }
}