Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phame / editor / PhamePostEditEngineLock.php
blob2c3ff01f20afa894693cd092fc02ddab1e30a016
1 <?php
3 final class PhamePostEditEngineLock
4 extends PhabricatorEditEngineLock {
6 public function willPromptUserForLockOverrideWithDialog(
7 AphrontDialogView $dialog) {
9 return $dialog
10 ->setTitle(pht('Edit Locked Post'))
11 ->appendParagraph(
12 pht('Comments are disabled for this post. Edit it anyway?'))
13 ->addSubmitButton(pht('Edit Post'));
16 public function willBlockUserInteractionWithDialog(
17 AphrontDialogView $dialog) {
19 return $dialog
20 ->setTitle(pht('Post Locked'))
21 ->appendParagraph(
22 pht('You can not interact with this post because it is locked.'));
25 public function getLockedObjectDisplayText() {
26 return pht('Comments have been disabled for this post.');