Dotclear


Ignore:
Timestamp:
05/14/11 21:27:03 (12 years ago)
Author:
Moe
Message:

@ Reply 1.6.2:

  • Dotclear 2.2 settings
  • added author name on @Reply arrows (closes #657)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/atReply/index.php

    r2908 r3033  
    3737} 
    3838 
    39 $settings =& $core->blog->settings; 
     39$core->blog->settings->addNameSpace('atReply'); 
     40 
     41$settings =& $core->blog->settings->atreply; 
    4042 
    4143try 
     
    4749          $color = trim($_POST['atreply_color']); 
    4850           
    49           $settings->setNameSpace('atreply'); 
    5051          $settings->put('atreply_active',!empty($_POST['atreply_active']), 
    5152               'boolean','Enable @ Reply'); 
     
    6869               !empty($_POST['atreply_subscribe_replied_comment']), 
    6970               'boolean','Subscribe replied comments to "Subscribe to comments"'); 
    70            
    71           # inspired by lightbox/admin.php 
    72           $settings->setNameSpace('system'); 
    7371           
    7472          # if there is a color 
     
    155153$image_url = $core->blog->getQmarkURL().'pf=atReply/img/reply.png'; 
    156154 
     155$system = $core->blog->settings->system; 
     156 
    157157# personalized image 
    158 if (strlen($core->blog->settings->atreply_color) > 1) 
    159 { 
    160      $personalized_image = $core->blog->settings->public_url. 
     158if (strlen($settings->atreply_color) > 1) 
     159{ 
     160     $personalized_image = $system->public_url. 
    161161          '/atReply/reply.png'; 
    162162      
    163      if (file_exists(path::fullFromRoot($settings->public_path, 
     163     if (file_exists(path::fullFromRoot($system->public_path, 
    164164          DC_ROOT).'/atReply/reply.png')) 
    165165     { 
    166166          $image_url = $personalized_image; 
    167167           
    168           if (substr($settings->public_url,0,1) == '/') 
     168          if (substr($system->public_url,0,1) == '/') 
    169169          { 
    170170               # public_path is located at the root of the website 
    171171               $image_url = $core->blog->host.'/'.$personalized_image; 
    172172          } 
    173           elseif (substr($settings->public_url,0,4) == 'http') 
     173          elseif (substr($system->public_url,0,4) == 'http') 
    174174          { 
    175175               $image_url = $personalized_image; 
     
    238238                    <label class="classic" for="atreply_subscribe_replied_comment"> 
    239239                         <?php printf(__('When clicking on the "%s" button in a comment list of the administration, subscribe to comments the email address of the replied comment with the %s plugin'), 
    240                               __('reply to this comment'),__('Subscribe to comments')); ?> 
     240                              __('Reply to this comment'),__('Subscribe to comments')); ?> 
    241241                    </label> 
    242242               </p> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map