Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2011 at 09:13 UTC
Updated:
19 May 2011 at 00:43 UTC
This small patch corrects indentations for objects in ctools_var_export().
Before:
$object = new stdClass;
$object->some_array_1 = array(
'obj_1' => (object) array(
'item_1' => 'val_1',
'item_2' => 'val_2',
'some_array_2' => array(
'obj_2' => (object) array(
'item_3' => 'val_3',
'item_4' => 'val_4',
),
),
'item_3' => 'val_3',
),
);
After:
$object = new stdClass;
$object->some_array_1 = array(
'obj_1' => (object) array(
'item_1' => 'val_1',
'item_2' => 'val_2',
'some_array_2' => array(
'obj_2' => (object) array(
'item_3' => 'val_3',
'item_4' => 'val_4',
),
),
'item_3' => 'val_3',
),
);
| Comment | File | Size | Author |
|---|---|---|---|
| ctools_var_export_object_indentations.patch | 615 bytes | vgoodvin |
Comments
Comment #1
vgoodvin commentedComment #2
merlinofchaos commentedEasy one! Committed to both 6.x and 7.x