Sorting by original filename

will1901

New Member
YetiShare User
Nov 1, 2012
8
0
0
With the new version I'm having an issue sorting by the original file name. In the old version I just moved the original filename to the beginning of the column and it worked that way. But now it doesn't seem to work. I'm probably missing something stupidly obvious but I figured I would ask.

Also on _account_home.ajax.php line 92/93
Code:
$link .= '<br/><span style="color: #999;">' . $file['originalFilename'];
        $link .= '&nbsp;(' . formatSize($file['fileSize']) . ')</font>';
Shouldn't
Code:
</font>
be
Code:
</span>
- looks like chrome changes it to style anyway.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

You are correct the closing tag is indeed wrong. I've updated this in the codebase.

The sorting was also set to be by the file url rather than the original filename. It's probably more useful as the original filename, so I've amended the code to sort by this when you click the column header.

Either re-download the latest release or upload the .php in the attached zip.

Regards,
Adam.
 

Attachments