help3/xhpeditor/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 6fc43602ef5a7e1f87ac41c7c064cbbd050b9ed5 Author: Olivier Hallot <olivier.hal...@libreoffice.org> AuthorDate: Tue Feb 11 19:21:18 2020 -0300 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Tue Feb 11 23:42:16 2020 +0100 xhpeditor: display filename in render area Change-Id: Ic34a555cb4332017d4ebbf42f6ad1a3387f58775 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88480 Tested-by: Olivier Hallot <olivier.hal...@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php index 312bca9..ff77086 100644 --- a/help3/xhpeditor/index.php +++ b/help3/xhpeditor/index.php @@ -62,8 +62,10 @@ $xhp = $_POST["xhpdoc"]; </div> <?php $xhp = $_POST["xhpdoc"]; + $xhp_filename = simplexml_load_string($xhp)->xpath("//filename"); if (isset($_POST["render_page"])) { - echo '<div id="renderedpageheader"><h2>Rendered page</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; + echo '<div id="renderedpageheader"><h2>Rendered page: '.$xhp_filename[0]; + echo '</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; $opSys = array("MAC", "WIN", "UNIX"); foreach ($opSys as $value) { echo '<input type="radio" name="sys" onclick="setSystemSpan(\''.$value.'\')">'.$value.' '; @@ -91,7 +93,8 @@ $xhp = $_POST["xhpdoc"]; $root = 'helpdocument'; $old = new DOMDocument; - echo '<div id="renderedpageheader"><h2>Help File Verification</h2></div>'; + echo '<div id="renderedpageheader"><h2>Help File Verification: '.$xhp_filename[0]; + echo '</h2></div>'; echo '<div id="renderedpage"><h3>Check XML Formation</h3>'; if ( !$old->loadXML($xhp) ) { $errors = libxml_get_errors(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits