
03-05-2012, 05:11 PM
|
|
|
Join Date: Dec 2005
Location: San Diego, CA, USA
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Mooff
At first glance it seems like they change how the picture url for attachments are saved in the database (we are not on 4.1.11 yet, so i can't check).
untested:
change
Code:
if(is_resource($sprite) AND $article['previewimage'] )
{
$imageinfo = getimagesize($article['previewimage']);
if(is_array($imageinfo))
{
to
Code:
if(is_resource($sprite) AND $article['previewimage'] )
{
if(substr($article['previewimage'],0,10) == 'attachment')
{
$article['previewimage'] = 'http://www.your_site/' . $article['previewimage'];
};
$imageinfo = getimagesize($article['previewimage']);
if(is_array($imageinfo))
{
with 'your_site' beeing your site. 
|
I can confirm this worked for me on a 4.1.11 installation. Thanks!
|