1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

phtize a few strings

Summary: Self-explanatory.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11909
This commit is contained in:
Joshua Spence 2015-03-01 09:41:00 +11:00
parent 130aa755bb
commit 96f6fb585e

View file

@ -50,19 +50,23 @@ final class PhabricatorApplicationSearchController
if (!$parent) {
throw new Exception(
'You must delegate to this controller, not invoke it directly.');
pht('You must delegate to this controller, not invoke it directly.'));
}
$engine = $this->getSearchEngine();
if (!$engine) {
throw new Exception(
'Call setEngine() before delegating to this controller!');
pht(
'Call %s before delegating to this controller!',
'setEngine()'));
}
$nav = $this->getNavigation();
if (!$nav) {
throw new Exception(
'Call setNavigation() before delegating to this controller!');
pht(
'Call %s before delegating to this controller!',
'setNavigation()'));
}
$engine->setViewer($this->getRequest()->getUser());