Revert "Update Dialog.php"

This reverts commit 2a8700e1140836b8f2af653cbdfdf7f061fbf3ed.