Camen Design Forum

PHP 5.2 and domtemplate.php | typo/bug?

Peter

I've installed this on several different shared servers. Those running PHP 5.2 throw up an error in domtemplate.php at line 390

% 
	//XML is already used for the internal representation; if outputting XML no filtering is needed
		if ($this->type == $this::XML) return $source;
%

Changing to this fixes it:

%
	//XML is already used for the internal representation; if outputting XML no filtering is needed
		if ($this->type == $this->XML) return $source;
%

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn