Fairly sure this is unintentional, and will cause fatal errors if triggered on a system without devel.module:

if (!isset($preview['#file'])) { dpm($file); }

#1 1512258_media_dpm.patch475 bytesAlan Evans
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


Alan Evans’s picture

Status: Active » Needs review
475 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
Dave Reid’s picture

Status: Needs review » Fixed

Argh, sorry about that. Committed patch in #1 to 7.x-1.x: http://drupalcode.org/project/media.git/commit/7e66078

Alan Evans’s picture


Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.