summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-02-04 20:14:05 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-02-04 20:14:05 +0000
commit7fe195a07e94c474a4fc97e482b06c70e4526cb0 (patch)
treea5151bf2c9098b61b9d9b25b12c4289af49b8002 /includes
parentab816b6d6d0e15d0d7f703b46e255e172d28fdea (diff)
downloadbrdo-7fe195a07e94c474a4fc97e482b06c70e4526cb0.tar.gz
brdo-7fe195a07e94c474a4fc97e482b06c70e4526cb0.tar.bz2
- PHP5 fix due object references: node previewing should not put node output into form.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 3fb7e0207..79a56dd86 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1837,6 +1837,17 @@ function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}
+/**
+ * Provide a substitute clone() function for PHP4.
+ */
+if (version_compare(phpversion(), '5.0') < 0) {
+ eval('
+ function clone($object) {
+ return $object;
+ }
+ ');
+}
+
include_once 'includes/theme.inc';
include_once 'includes/pager.inc';
include_once 'includes/menu.inc';