Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

SimpleCMS module - site logo

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-23-2017, 10:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default SimpleCMS module - site logo

Just a warning for everyone relying on SimpleCMS module to change their site logo.

The module is coded so to change the image name you are uploading as logo and Apple icon.

It will prepend "logo_" and "appleIcon_" to the uploaded image name.

So if you are uploading site logo as "my-site-logo.png" the image will be uploaded, saved and shown as "logo_my-site-logo.png"

Now I am sorry but why in the world you would do this? XC?
Images names matter. Do not change them like this.

The offensive file is - classes/XLite/Module/CDev/SimpleCMS/View/Model/Settings.php

PHP Code:
/**
     * Additional preparations for images.
     * Upload them into specific directory
     *
     * @param string $optionValue Option value
     * @param string $imageType   Image type
     *
     * @return string
     */
    
protected function prepareImageData($optionValue$imageType)
    {
        .............
            
$realName $imageType '_' $realName;

................... 
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #2  
Old 07-23-2017, 10:39 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: SimpleCMS module - site logo

I think this should be a bug report
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:03 AM.

   

 
X-Cart forums © 2001-2020