Dotclear

Changeset 1337


Ignore:
Timestamp:
07/14/09 14:47:24 (14 years ago)
Author:
Moe
Message:

@ Reply 1.4-beta2 :

  • replaced parse_url() call by $core->blog->host (thanks to Apercite for the idea, see [1333])
Location:
plugins/atReply
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/atReply/_define.php

    r1328 r1337  
    3030  /* Description*/  'Easily reply to comments', 
    3131  /* Author */           'Moe (http://gniark.net/) append extension by buns.fr', 
    32   /* Version */               '1.4-beta1', 
     32  /* Version */               '1.4-beta2', 
    3333  /* Permissions */ 'admin' 
    3434); 
  • plugins/atReply/index.php

    r1328 r1337  
    143143     $personalized_image = $core->blog->settings->public_url. 
    144144          '/atReply/reply.png'; 
     145      
    145146     if (file_exists(path::fullFromRoot($settings->public_path, 
    146147          DC_ROOT).'/atReply/reply.png')) 
     
    151152          { 
    152153               # public_path is located at the root of the website 
    153                $parsed_url = @parse_url($core->blog->url); 
    154                 
    155                $image_url = $parsed_url['scheme'].'://'.$parsed_url['host']. 
    156                     $personalized_image; 
    157                 
    158                unset($parsed_url); 
     154               $image_url = $core->blog->host.'/'.$personalized_image; 
    159155          } else { 
    160156               $image_url = $core->blog->url.$personalized_image; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map