BUG-report 1.1.0

Phoca Download - download manager
bole
Phoca Member
Phoca Member
Posts: 28
Joined: 26 Mar 2009, 00:23

BUG-report 1.1.0

Post by bole »

I was frustrated to see that I couldn't change the "Enable Flash uploader" and the "Enable User statistics" options in the administration section (the drop-down list only gave a "Yes" as option), so I digged in some code and found a bug.

In file /administrator/components/com_phocadownload/helpers/phocadownload.php on line 306 there is a " to much, which prevents creating of a correct drop-down list.

It was:

Code: Select all

$select .= '<option value="'.$valueOption['id'].'" '.$selected.' ">'.JText::_($valueOption['value']).'</option>' . "\n";

and it should be

Code: Select all

$select .= '<option value="'.$valueOption['id'].'" '.$selected.'>'.JText::_($valueOption['value']).'</option>' . "\n";


Mind the " symbol, just in front of >'.JText::
Now the drop-down lists are made correctly, so the option is available for change again.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: BUG-report 1.1.0

Post by Jan »

Hi, thank you for this information, I have fixed it (in the same version 1.1.0)

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply