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.
12345678910111213141516171819202122232425262728293031<?php
final class Aphront404Response extends AphrontHTMLResponse {
public function getHTTPResponseCode() { return 404; }
public function buildResponseString() { $request = $this->getRequest(); $user = $request->getUser();
$dialog = id(new AphrontDialogView()) ->setUser($user) ->setTitle(pht('404 Not Found')) ->addCancelButton('/', pht('Focus')) ->appendParagraph(pht( 'Do not dwell in the past, do not dream of the future, '. 'concentrate the mind on the present moment.'));
$view = id(new PhabricatorStandardPageView()) ->setTitle('404 Not Found') ->setRequest($request) ->setDeviceReady(true) ->appendChild($dialog);
return $view->render(); }
}