From 9a0b40dabab84899edec150928d0e6f57c6c5dfa Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 14 Nov 2009 12:52:32 -0500 Subject: [PATCH] allow for skipping normalize checks and return raw metadata --- classes/ComicPressComicPost.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/ComicPressComicPost.inc b/classes/ComicPressComicPost.inc index 4c203dc..bf14574 100644 --- a/classes/ComicPressComicPost.inc +++ b/classes/ComicPressComicPost.inc @@ -160,11 +160,12 @@ class ComicPressComicPost { /** * Rework normalized attachments for a simpler embed format. + * @param boolean $skip_checks If true, skip the normalization checks in normalize_ordering(). Don't use in the admin interface. * @return array The simplified, normalized attachments. */ - function get_attachments_with_children() { + function get_attachments_with_children($skip_checks = false) { $attachments_with_children = array(); - foreach ($this->normalize_ordering() as $id => $info) { + foreach ($this->normalize_ordering($skip_checks) as $id => $info) { if ($info['enabled']) { $attachments_with_children[$id] = array(); if (isset($info['children'])) {