Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php |
— | — | @@ -87,11 +87,11 @@ |
88 | 88 | } |
89 | 89 | |
90 | 90 | function getMimeType() { |
91 | | - if( empty( $info['mime'] ) ) { |
| 91 | + if( !isset( $this->mInfo['mime'] ) ) { |
92 | 92 | $magic = MimeMagic::singleton(); |
93 | | - $info['mime'] = $magic->guessTypesForExtension( $this->getExtension() ); |
| 93 | + $this->mInfo['mime'] = $magic->guessTypesForExtension( $this->getExtension() ); |
94 | 94 | } |
95 | | - return $info['mime']; |
| 95 | + return $this->mInfo['mime']; |
96 | 96 | } |
97 | 97 | |
98 | 98 | /// @fixme May guess wrong on file types that can be eg audio or video |