a small record.php bug correction

A place to discuss development of the Xataface core.

a small record.php bug correction

Postby olivyeah » Tue Aug 24, 2010 4:09 am

Small correction on record.php
xataface 1.2.4 /dataface/record.php

line 2262
Code: Select all
if(extension_loaded('fileinfo')) {
               $res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */
               $mimetype = finfo_file($path);

it works better with "$mimetype = finfo_file($res, $path);" :-)
Code: Select all
if(extension_loaded('fileinfo')) {
               $res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */
               $mimetype = finfo_file($res, $path);


best regards

--
oliv
olivyeah
 
Posts: 8
Joined: Mon May 17, 2010 1:58 pm

Re: a small record.php bug correction

Postby shannah » Wed Sep 01, 2010 10:52 am

Thanks. I've fixed this in SVN rev. 1924. It will be included with the next release.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved