import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -16,8 +16,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Docs
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Docs.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -42,7 +43,7 @@ require_once 'Zend/Gdata/Docs/DocumentListEntry.php';
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Docs
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Docs extends Zend_Gdata
|
||||
@ -221,8 +222,7 @@ class Zend_Gdata_Docs extends Zend_Gdata
|
||||
|
||||
// Set the mime type of the data.
|
||||
if ($mimeType === null) {
|
||||
$slugHeader = $fs->getSlug();
|
||||
$filenameParts = explode('.', $slugHeader);
|
||||
$filenameParts = explode('.', $fileLocation);
|
||||
$fileExtension = end($filenameParts);
|
||||
$mimeType = self::lookupMimeType($fileExtension);
|
||||
}
|
||||
|
Reference in New Issue
Block a user