|
From: <var...@us...> - 2021-01-07 15:45:56
|
Revision: 10231
http://sourceforge.net/p/phpwiki/code/10231
Author: vargenau
Date: 2021-01-07 15:45:54 +0000 (Thu, 07 Jan 2021)
Log Message:
-----------
lib/plugin/DebugBackendInfo.php: no need for a table if no pagedata
Modified Paths:
--------------
trunk/lib/plugin/DebugBackendInfo.php
Modified: trunk/lib/plugin/DebugBackendInfo.php
===================================================================
--- trunk/lib/plugin/DebugBackendInfo.php 2021-01-07 11:13:17 UTC (rev 10230)
+++ trunk/lib/plugin/DebugBackendInfo.php 2021-01-07 15:45:54 UTC (rev 10231)
@@ -70,14 +70,13 @@
$this->readonly_pagemeta = array();
$this->hidden_pagemeta = array('_cached_html');
- $html = HTML(HTML::h2(fmt("Querying backend directly for “%s”",
- $page)));
+ $html = HTML(HTML::h2(fmt("Querying backend directly for “%s”", $page)));
$table = HTML::table(array('class' => 'bordered'));
$pagedata = $backend->get_pagedata($page);
if (!$pagedata) {
- // FIXME: invalid HTML
$html->pushContent(HTML::p(fmt("No pagedata for %s", $page)));
+ return $html;
} else {
$this->_fixupData($pagedata);
$table->pushContent($this->_showhash("get_pagedata('$page')", $pagedata));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|