diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-02-23 21:08:52 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-02-23 21:08:52 -0800 | 
| commit | 2eea7b874aa06f08ed58a85197473233b54693aa (patch) | |
| tree | abe5efc03c51d1a97d2e0abbbcdb331592525074 /modules/g2_import | |
| parent | 6afc5ccf5c5d70b3aef4024f892141a07779c25f (diff) | |
Specify the type for movie Item_Models correctly.  Fixes ticket #1033.
Diffstat (limited to 'modules/g2_import')
| -rw-r--r-- | modules/g2_import/helpers/g2_import.php | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 9a91770a..95ec282d 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -530,6 +530,7 @@ class g2_import_Core {        if (in_array($g2_item->getMimeType(), array("video/mp4", "video/x-flv"))) {          try {            $item = ORM::factory("item"); +          $item->type = "movie";            $item->parent_id = $parent->id;            $item->set_data_file($g2_path);            $item->name = $g2_item->getPathComponent(); | 
