summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Boyer2008-10-07 23:47:57 (GMT)
committerSam Boyer2008-10-07 23:47:57 (GMT)
commit758a8c2939fb0719f8dc0ff76a14cabacf112806 (patch)
tree2e151b2172ba9719a70834793ced4cb9d37a6691
parent80bdc8f253c37648d8ef2dc5ae25f91dbb307745 (diff)
Fixed exporter to use sanitized 'new' values for pids and dids.
-rw-r--r--panels_page/panels_page.write.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/panels_page/panels_page.write.inc b/panels_page/panels_page.write.inc
index 2c19b37..0c67cb8 100644
--- a/panels_page/panels_page.write.inc
+++ b/panels_page/panels_page.write.inc
@@ -177,9 +177,10 @@ function panels_page_export($panel_page, $prefix = '') {
$output = '';
$fields = panels_page_fields();
$output .= $prefix . '$page = new stdClass()' . ";\n";
- $output .= $prefix . '$page->pid = \'new\'' . ";\n";
+ $output .= $prefix . ' $page->pid = \'new\'' . ";\n";
+ $output .= $prefix . ' $page->did = \'new\'' . ";\n";
foreach (array_keys($fields) as $field) {
- if (isset($panel_page->$field) && !in_array($field, array('displays', 'contexts', 'display'))) {
+ if (isset($panel_page->$field) && !in_array($field, array('displays', 'contexts', 'display', 'pid', 'did'))) {
$output .= $prefix . ' $page->' . $field . ' = ' . panels_var_export($panel_page->$field, ' ') . ";\n";
}
}