"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/handler/page/filemeta.php" between
wacko.6.1.18.zip and wacko.6.1.19.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

filemeta.php  (wacko.6.1.18):filemeta.php  (wacko.6.1.19)
skipping to change at line 214 skipping to change at line 214
if ($mode == 'show') if ($mode == 'show')
{ {
// 2.a SHOW FILE PROPERTIES // 2.a SHOW FILE PROPERTIES
$tpl->enter('s_'); $tpl->enter('s_');
if ($this->has_access('read', $file['page_id'])) if ($this->has_access('read', $file['page_id']))
{ {
$tpl->link = $this->link($path . $fi le['file_name'], '', Ut::shorten_string($file['file_name'])); $tpl->link = $this->link($path . $fi le['file_name'], '', Ut::shorten_string($file['file_name']));
// show image // show image
if (in_array($file['file_ext'], ['avif', 'gif', 'jpg', 'j pe', 'jpeg', 'jxl', 'png', 'svg', 'webp'])) if (in_array($file['file_ext'], array_merge(self::EXT['bi tmap'], self::EXT['drawing'])))
{ {
$tpl->i_href = $href; $tpl->i_href = $href;
$tpl->i_image = $this->link($path . $fi le['file_name'], '', '', '', null, null, null, false); $tpl->i_image = $this->link($path . $fi le['file_name'], '', '', '', null, null, null, false);
} }
// show audio & video // show audio & video
else if (in_array($file['file_ext'], ['mp4', 'ogv', 'webm ', 'm4a' , 'mp3', 'ogg', 'opus'])) else if (in_array($file['file_ext'], array_merge(self::EX T['audio'], self::EXT['video'])))
{ {
$tpl->m_image = $this->link($path . $fi le['file_name'], '', '', '', null, null, null, false); $tpl->m_image = $this->link($path . $fi le['file_name'], '', '', '', null, null, null, false);
} }
if ($file['page_id']) if ($file['page_id'])
{ {
// relative path // relative path
$tpl->s_syntax = 'file:' . $file['file_n ame']; $tpl->s_syntax = 'file:' . $file['file_n ame'];
// absolute path (<details>) // absolute path (<details>)
$tpl->s_d_syntax = $path . $file['file_nam e']; $tpl->s_d_syntax = $path . $file['file_nam e'];
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)