From 92b51efc9a825ef36ad3d06102cdb3a9eca50cff Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 7 Jun 2010 10:37:33 +0000 Subject: [PATCH] use special HtmlElement5.php with php-4 unparsable public static declaration git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7471 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/ErrorManager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ErrorManager.php b/lib/ErrorManager.php index 7a9418fba..f8492c67b 100644 --- a/lib/ErrorManager.php +++ b/lib/ErrorManager.php @@ -649,7 +649,11 @@ class PhpErrorOnce extends PhpError { } } -require_once(dirname(__FILE__).'/HtmlElement.php'); +if (check_php_version(5,2)) { + require_once(dirname(__FILE__).'/HtmlElement5.php'); +} else { + require_once(dirname(__FILE__).'/HtmlElement.php'); +} if (!isset($GLOBALS['ErrorManager'])) { $GLOBALS['ErrorManager'] = new ErrorManager; -- 2.45.0