mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-30 12:30:52 +02:00
tweak the enclosure dropdown display a little bit for less-readable urls
This commit is contained in:
parent
db92edd1aa
commit
c606bd5741
|
@ -1944,7 +1944,8 @@
|
|||
|
||||
if (!$ctype) $ctype = __("unknown type");
|
||||
|
||||
$filename = substr($url, strrpos($url, "/")+1);
|
||||
//$filename = substr($url, strrpos($url, "/")+1);
|
||||
$filename = basename($url);
|
||||
|
||||
$player = format_inline_player($url, $ctype);
|
||||
|
||||
|
@ -2029,8 +2030,13 @@
|
|||
else
|
||||
$title = "";
|
||||
|
||||
if ($entry["filename"])
|
||||
$filename = truncate_middle(htmlspecialchars($entry["filename"]), 60);
|
||||
else
|
||||
$filename = "";
|
||||
|
||||
$rv .= "<div onclick='window.open(\"".htmlspecialchars($entry["url"])."\")'
|
||||
dojoType=\"dijit.MenuItem\">".htmlspecialchars($entry["filename"])."$title</div>";
|
||||
dojoType=\"dijit.MenuItem\">".$filename . $title."</div>";
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user