mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-08 22:01:03 +01:00
Fix a URI construction in remarkup macro/meme rules
Summary: Ref T13250. Some of these parameters may be NULL, and `alter()` is no longer happy about that. Test Plan: Ran daemon tasks that happened to render some memes. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13250 Differential Revision: https://secure.phabricator.com/D20176
This commit is contained in:
parent
b09cf166a8
commit
66060b294b
1 changed files with 7 additions and 4 deletions
|
@ -47,10 +47,13 @@ final class PhabricatorMemeEngine extends Phobject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGenerateURI() {
|
public function getGenerateURI() {
|
||||||
return id(new PhutilURI('/macro/meme/'))
|
$params = array(
|
||||||
->alter('macro', $this->getTemplate())
|
'macro' => $this->getTemplate(),
|
||||||
->alter('above', $this->getAboveText())
|
'above' => $this->getAboveText(),
|
||||||
->alter('below', $this->getBelowText());
|
'below' => $this->getBelowText(),
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PhutilURI('/macro/meme/', $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function newAsset() {
|
public function newAsset() {
|
||||||
|
|
Loading…
Reference in a new issue