r70909 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r70908
|
r70909
|
r70910
>
Date:
18:56, 11 August 2010
Author:
platonides
Status:
ok
Tags:
Comment:
Follow up
r24808
.
mime is not in getCacheFields(), so $this->mime was never populated at this point (regardless of $info['mime']) and splitMime() always returned unknown.
Modified paths:
/trunk/phase3/includes/filerepo/LocalFile.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/filerepo/LocalFile.php
—
—
@@ -377,10 +377,12 @@
378
378
$this->$field = $info[$field];
379
379
}
380
380
}
381
+
381
382
// Fix up mime fields
382
383
if ( isset( $info['major_mime'] ) ) {
383
384
$this->mime = "{$info['major_mime']}/{$info['minor_mime']}";
384
385
} elseif ( isset( $info['mime'] ) ) {
386
+ $this->mime = $info['mime'];
385
387
list( $this->major_mime, $this->minor_mime ) = self::splitMime( $this->mime );
386
388
}
387
389
}
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r24808
Basic integrated audio/video support, with Ogg implementation....
tstarling
10:50, 15 August 2007
Status & tagging log
21:51, 1 December 2010
Bryan
(
talk
|
contribs
)
changed the
status
of r70909
[
removed:
new
added:
ok]