imagesidebar 0.100.3: Fix permanent display of unknown mime icon (#145)
This commit is contained in:
parent
420b659d87
commit
f15808ad26
|
@ -1,3 +1,7 @@
|
||||||
|
0.100.3:
|
||||||
|
-----
|
||||||
|
* Fix image display when fetching from ML
|
||||||
|
|
||||||
0.100.2:
|
0.100.2:
|
||||||
-----
|
-----
|
||||||
* Hotfixes for PHP 8 (surrim)
|
* Hotfixes for PHP 8 (surrim)
|
||||||
|
|
|
@ -232,6 +232,7 @@ class media_sidebar extends subplug_sidebar {
|
||||||
if (is_array($images)) {
|
if (is_array($images)) {
|
||||||
$output_str .= $this->get_config('media_intro');
|
$output_str .= $this->get_config('media_intro');
|
||||||
foreach ($images as $image) {
|
foreach ($images as $image) {
|
||||||
|
serendipity_prepareMedia($image);
|
||||||
if (isset($image['name'])) {
|
if (isset($image['name'])) {
|
||||||
if ($image['hotlink'] == 1) {
|
if ($image['hotlink'] == 1) {
|
||||||
$thumb_path = $image_path = $image['path'];
|
$thumb_path = $image_path = $image['path'];
|
||||||
|
|
|
@ -68,7 +68,7 @@ class serendipity_plugin_imagesidebar extends serendipity_plugin {
|
||||||
$propbag->add('description', PLUGIN_SIDEBAR_IMAGESIDEBAR_DESC);
|
$propbag->add('description', PLUGIN_SIDEBAR_IMAGESIDEBAR_DESC);
|
||||||
$propbag->add('stackable', true);
|
$propbag->add('stackable', true);
|
||||||
$propbag->add('author', 'Andrew Brown (Menalto code), Matthew Groeninger (Unified/Media Lib. Code), Stefan Lange-Hegermann (Zooomr Code), Matthew Maude (Coppermine code)');
|
$propbag->add('author', 'Andrew Brown (Menalto code), Matthew Groeninger (Unified/Media Lib. Code), Stefan Lange-Hegermann (Zooomr Code), Matthew Maude (Coppermine code)');
|
||||||
$propbag->add('version', '0.100.2');
|
$propbag->add('version', '0.100.3');
|
||||||
$propbag->add('license', 'BSD');
|
$propbag->add('license', 'BSD');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '0.8',
|
'serendipity' => '0.8',
|
||||||
|
|
Loading…
Reference in a new issue