mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -111,7 +111,7 @@ class download_setup
|
||||
{
|
||||
if($needed == TRUE){ return "Incorrect download image paths"; } // Signal that an update is required.
|
||||
|
||||
if($sql->db_Update("download","download_image = CONCAT('{e_FILE}downloadimages/',download_image) WHERE download_image !='' "))
|
||||
if($sql->update("download","download_image = CONCAT('{e_FILE}downloadimages/',download_image) WHERE download_image !='' "))
|
||||
{
|
||||
$mes->addSuccess("Updated Download-Image paths");
|
||||
}
|
||||
@@ -120,7 +120,7 @@ class download_setup
|
||||
$mes->addError("Failed to update Download-Image paths");
|
||||
}
|
||||
|
||||
if($sql->db_Update("download"," download_thumb = CONCAT('{e_FILE}downloadthumbs/',download_thumb) WHERE download_thumb !='' "))
|
||||
if($sql->update("download"," download_thumb = CONCAT('{e_FILE}downloadthumbs/',download_thumb) WHERE download_thumb !='' "))
|
||||
{
|
||||
$mes->addSuccess("Updated Download-Thumbnail paths");
|
||||
}
|
||||
@@ -136,7 +136,7 @@ class download_setup
|
||||
// Signal that an update is required.
|
||||
if($needed == TRUE){ return "Downloads-Category icon paths need updating"; } // Must have a value if an update is needed. Text used for debug purposes.
|
||||
|
||||
if($sql->db_Update("download_category","download_category_icon = CONCAT('{e_IMAGE}icons/',download_category_icon) WHERE download_category_icon !='' "))
|
||||
if($sql->update("download_category","download_category_icon = CONCAT('{e_IMAGE}icons/',download_category_icon) WHERE download_category_icon !='' "))
|
||||
{
|
||||
$mes->addSuccess("Updated Download-Image paths");
|
||||
}
|
||||
|
Reference in New Issue
Block a user