Pārlūkot izejas kodu

Reverted back to old method of extension grabbing.

pull/24/head
Teknikode pirms 6 gadiem
vecāks
revīzija
6f162357da
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1
    2
      includes/common.php

+ 1
- 2
includes/common.php Parādīt failu

@@ -174,8 +174,7 @@ function upload($files, $CONF, $db)
if (!empty($files)) {
$filesize = filesize($files['file']['tmp_name']);
$file_type = mime_content_type($files['file']['tmp_name']);
//$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
$ext = substr($files['file']['name'], strrpos($files['file']['name'], '.')+1);
$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
if ($logged_in == 1)
{
$user_id = $user->id;

Notiek ielāde…
Atcelt
Saglabāt