N°3785 - Use DownloadPage to download documents

This commit is contained in:
Eric
2021-03-04 16:37:15 +01:00
parent 226c301d92
commit 622b486d1f
10 changed files with 42 additions and 97 deletions

View File

@@ -16,8 +16,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with iTop. If not, see <http://www.gnu.org/licenses/>
use Combodo\iTop\Application\UI\Base\iUIBlock;
/**
* Class XMLPage
*
@@ -64,22 +62,17 @@ class XMLPage extends WebPage
}
echo $this->s_content;
}
if (class_exists('DBSearch'))
{
if (class_exists('DBSearch')) {
DBSearch::RecordQueryTrace();
}
}
public function add($sText): ?iUIBlock
public function add($sText)
{
if (!$this->m_bPassThrough)
{
if (!$this->m_bPassThrough) {
parent::add($sText);
}
else
{
if ($this->m_bHeaderSent)
{
} else {
if ($this->m_bHeaderSent) {
echo $sText;
}
else
@@ -97,7 +90,6 @@ class XMLPage extends WebPage
$this->m_bHeaderSent = true;
}
}
return null;
}
public function small_p($sText)