Removed more useless code - BT#2724

skala
ywarnier 14 years ago
parent d9c44d81ad
commit 72035c9ca5
  1. 2
      main/inc/lib/phpdocx/classes/CreateFooter.inc
  2. 6
      main/inc/lib/phpdocx/classes/CreateHeader.inc

@ -120,7 +120,7 @@ class CreateFooter extends CreateElement
*/
protected function generateFTR()
{
$this->_xml = '__GENERATEFTR____GENERATEIMGFTR__';
//$this->_xml = '__GENERATEFTR____GENERATEIMGFTR__';
$this->_xml = '';
}

@ -101,7 +101,8 @@ class CreateHeader extends CreateElement
*/
protected function generateHDR()
{
$this->_xml = '__GENERATEHDR____GENERATEHDRIMG__';
//$this->_xml = '__GENERATEHDR____GENERATEHDRIMG__';
$this->_xml = '__GENERATEHDR__';
}
/**
@ -120,7 +121,8 @@ class CreateHeader extends CreateElement
$text->createText($args[0], $args[1]);
$this->generateHDR();
$this->_xml = str_replace(
'__GENERATEHDR__', (string) $text . '__GENERATEHDR__',
// '__GENERATEHDR__', (string) $text . '__GENERATEHDR__',
'__GENERATEHDR__', (string) $text,
$this->_xml
);
}

Loading…
Cancel
Save