summaryrefslogtreecommitdiff
path: root/help3
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2020-02-11 19:21:18 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2020-02-11 23:42:16 +0100
commit6fc43602ef5a7e1f87ac41c7c064cbbd050b9ed5 (patch)
treebd48fb1674d2eae0b6811eef69aac1e50a648776 /help3
parent8437e09c7aa00aba51feaa5a51c664e7a1a742bb (diff)
xhpeditor: display filename in render area
Change-Id: Ic34a555cb4332017d4ebbf42f6ad1a3387f58775 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88480 Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3')
-rw-r--r--help3/xhpeditor/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php
index 312bca95..ff770864 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.'&nbsp;';
@@ -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();