mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
More upgrade-related fixes
This commit is contained in:
@@ -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');
|
||||
|
0
e107_core/override/controllers/index.html
Normal file
0
e107_core/override/controllers/index.html
Normal file
0
e107_core/override/url/index.html
Normal file
0
e107_core/override/url/index.html
Normal file
@@ -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'];
|
||||
|
0
e107_system/url/index.html
Normal file
0
e107_system/url/index.html
Normal file
Reference in New Issue
Block a user