diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index c58068f44..04361da45 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -1043,7 +1043,8 @@ function update_706_to_800($type='') mysql_query("INSERT INTO `".MPREFIX."core_media_cat` VALUES(0, 'download', 'download_image', 'Download Images', '', 253, '', 0);"); mysql_query("INSERT INTO `".MPREFIX."core_media_cat` VALUES(0, 'download', 'download_thumb', 'Download Thumbnails', '', 253, '', 0);"); mysql_query("INSERT INTO `".MPREFIX."core_media_cat` VALUES(0, 'gallery', 'gallery_1', 'Gallery', 'Visible to the public at /gallery.php', 0, '', 0);"); - + mysql_query("INSERT INTO `".MPREFIX."core_media_cat` VALUES(0, 'news', 'news_thumb', 'News Thumbnails (Legacy)', 'Legacy news thumbnails. ', 253, '', 1);"); + $med->import('news_thumb', e_IMAGE.'newspost_images',"^thumb_"); $med->import('news',e_IMAGE.'newspost_images'); $med->import('page',e_IMAGE.'custom'); diff --git a/e107_core/override/controllers/index.html b/e107_core/override/controllers/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/e107_core/override/url/index.html b/e107_core/override/url/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index 69699adb9..9aa717239 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -177,7 +177,7 @@ class e_media $path = $tp->createConstants($epath, 'rel'); - $status = ($sql->db_Select_gen("SELECT * FROM `#core_media` WHERE `media_url` LIKE '".$path."%' AND media_owner = '_icon' ")) ? TRUE : FALSE; + $status = ($sql->db_Select_gen("SELECT * FROM `#core_media` WHERE `media_url` LIKE '".$path."%' AND media_category REGEXP '_icon_16|_icon_32|_icon_48|_icon_64' ")) ? TRUE : FALSE; while ($row = $sql->db_Fetch()) { $ret[] = $row['media_url']; diff --git a/e107_system/url/index.html b/e107_system/url/index.html new file mode 100644 index 000000000..e69de29bb