Added a Disable Macros function that can be called in some contexts where Macros are unsuitable

Summary: Semi Fixed T2397

Test Plan: Can disable the meme button on manually toggling the class variable.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2397

Differential Revision: https://secure.phabricator.com/D4781
This commit is contained in:
Debarghya Das
2013-02-04 09:54:01 -08:00
committed by epriestley
parent 39afb3fedb
commit ccb206e984
3 changed files with 18 additions and 11 deletions

View File

@@ -122,7 +122,8 @@ final class PhameBlogEditController
->setName('description')
->setValue($blog->getDescription())
->setID('blog-description')
->setUser($user))
->setUser($user)
->setDisableMacros(true))
->appendChild(
id(new AphrontFormPolicyControl())
->setUser($user)