PiRSquared17 / mp3-browser

Automatically exported from code.google.com/p/mp3-browser
GNU General Public License v2.0
0 stars 0 forks source link

Link on Title doesn't work...Chinese apears also...FIXED #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Hover over title link
2.Click on title link

What is the expected output? What do you see instead?
Download and see source name

What version of the product are you using? On what operating system?
newest

Please provide any additional information below.
TO fix this open FTP and file located in
plugins/content/mp3browser/html/HtmlNameColumn.php
Change last lines:
 private function wrapAnchor(MusicItem $data, $textToWrap) {
        $url = $data->getUrl();
        if ($url) {
            return "<a href=\"" . $url . "\" target=\"_blank\">" . $textToWrap . "</a>";
        }
        return $textToWrap;

To This:

    private function wrapAnchor(MusicItem $data, $textToWrap) {
        $url = $data->getUrl();
        if ($url) {
            return "<a href=\"" . $data->getUrlPath() . "\" target=\"_blank\">" . $textToWrap . "</a>";
        }
        return $textToWrap;

Original issue reported on code.google.com by gojoe_go...@yahoo.com on 2 Nov 2014 at 7:19

GoogleCodeExporter commented 9 years ago
If you want it to have a mouse over title add this instead

 private function wrapAnchor(MusicItem $data, $textToWrap) {
        $url = $data->getUrl();
        if ($url) {
            return "<a href=\"" . $data->getUrlPath() . "\" title=\"Download Audio File\" target=\"_blank\">" . $textToWrap . "</a>";
        }
        return $textToWrap;

Original comment by gojoe_go...@yahoo.com on 2 Nov 2014 at 7:27