From 10fd10cf455bf21f7799c6c9b245808f5262733a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 1 Feb 2010 07:17:59 +0000 Subject: #700686 by dww: Make ArchiverInterface::listContents() return a simple list of files, rather than a keyed array, which is inconsistent between extension handlers. --- modules/system/system.archiver.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/system/system.archiver.inc') diff --git a/modules/system/system.archiver.inc b/modules/system/system.archiver.inc index 557a27d80..c6880e170 100644 --- a/modules/system/system.archiver.inc +++ b/modules/system/system.archiver.inc @@ -49,7 +49,11 @@ class ArchiverTar implements ArchiverInterface { } public function listContents() { - return $this->tar->listContent(); + $files = array(); + foreach ($this->tar->listContent() as $file_data) { + $files[] = $file_data['filename']; + } + return $files; } /** -- cgit v1.2.3