* @private
*/
function preprocessToObj( $text, $flags = 0 ) {
- wfDebug( __METHOD__."\n" . $text . "\n" );
wfProfileIn( __METHOD__ );
$rules = array(
* Split a <template> or <tplarg> node
*/
function splitTemplate() {
- // wfDebug( 'Template: ' . var_export( $this, true ) );
$parts = array();
$bits = array( 'lineStart' => '' );
for ( $child = $this->firstChild; $child; $child = $child->nextSibling ) {
- // wfDebug( 'Child: ' . var_export( $child, true ) );
if ( !isset( $child->name ) ) {
continue;
}