From b266b570d847620c46a72b9c96820b73ee7678de Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 30 Mar 2011 21:37:28 -0700 Subject: [PATCH] Use remarkup engine for commit info. --- .../controller/commit/DiffusionCommitController.php | 8 ++++++-- src/applications/diffusion/controller/commit/__init__.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/applications/diffusion/controller/commit/DiffusionCommitController.php b/src/applications/diffusion/controller/commit/DiffusionCommitController.php index 0c7f4ecfc8..575348a302 100644 --- a/src/applications/diffusion/controller/commit/DiffusionCommitController.php +++ b/src/applications/diffusion/controller/commit/DiffusionCommitController.php @@ -40,7 +40,11 @@ class DiffusionCommitController extends DiffusionController { $commit_data = $drequest->loadCommitData(); + $factory = new DifferentialMarkupEngineFactory(); + $engine = $factory->newDifferentialCommentMarkupEngine(); + require_celerity_resource('diffusion-commit-view-css'); + require_celerity_resource('phabricator-remarkup-css'); $detail_panel->appendChild( '
'. @@ -58,8 +62,8 @@ class DiffusionCommitController extends DiffusionController { ''. ''. '
'. - '
'. - phutil_escape_html($commit_data->getCommitMessage()). + '
'. + $engine->markupText($commit_data->getCommitMessage()). '
'. '
'. '
'); diff --git a/src/applications/diffusion/controller/commit/__init__.php b/src/applications/diffusion/controller/commit/__init__.php index 36ce108d3e..ac585c939a 100644 --- a/src/applications/diffusion/controller/commit/__init__.php +++ b/src/applications/diffusion/controller/commit/__init__.php @@ -6,6 +6,7 @@ +phutil_require_module('phabricator', 'applications/differential/parser/markup'); phutil_require_module('phabricator', 'applications/differential/view/changesetlistview'); phutil_require_module('phabricator', 'applications/diffusion/controller/base'); phutil_require_module('phabricator', 'applications/diffusion/data/pathchange');