Skip to content

Commit

Permalink
Merge pull request #231 from kamilczujowski/master
Browse files Browse the repository at this point in the history
Function split() is deprecated in PHP 5.3.0
  • Loading branch information
yandod committed Apr 15, 2014
2 parents a115201 + 91a293b commit e9d4d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Model/MimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MimeType {
*/
public function __construct() {
foreach ($this->MIME_TYPES as $type => $exts) {
foreach (split(',', $exts) as $ext) {
foreach (explode(',', $exts) as $ext) {
$this->EXTENSIONS[trim($ext)] = $type;
}
}
Expand Down Expand Up @@ -99,7 +99,7 @@ public function of($name) {
public function main_mimetype_of($name) {
$mimetype = $this->of($name);
if ($mimetype) {
return array_shift(split('/', $mimetype));
return array_shift(explode('/', $mimetype));
}
return null;
}
Expand Down

0 comments on commit e9d4d9d

Please sign in to comment.