diff --git a/includes/admin.inc b/includes/admin.inc index 237a05d..6098b23 100644 --- a/includes/admin.inc +++ b/includes/admin.inc @@ -994,7 +994,7 @@ function views_ui_edit_form($form, &$form_state, $view, $display_id = NULL) { // @todo When more functionality is added to this form, cloning here may be // too soon. But some of what we do with $view later in this function // results in making it unserializable due to PDO limitations. - $form_state['view'] = clone($view); + $form_state['view'] = clone $view; $form['#attached']['library'][] = array('system', 'ui.tabs'); $form['#attached']['library'][] = array('system', 'ui.dialog'); diff --git a/includes/view.inc b/includes/view.inc index 9dde364..171304f 100644 --- a/includes/view.inc +++ b/includes/view.inc @@ -1953,7 +1953,7 @@ class view extends views_db_object { * The cloned view. */ function clone_view() { - $clone = version_compare(phpversion(), '5.0') < 0 ? $this : clone($this); + $clone = version_compare(phpversion(), '5.0') < 0 ? $this : clone $this; $keys = array('current_display', 'display_handler', 'build_info', 'built', 'executed', 'attachment_before', 'attachment_after', 'field', 'argument', 'filter', 'sort', 'relationship', 'header', 'footer', 'empty', 'query', 'inited', 'style_plugin', 'plugin_name', 'exposed_data', 'exposed_input', 'exposed_widgets', 'many_to_one_tables', 'feed_icon'); foreach ($keys as $key) {