Dotclear

Changeset 2755:eb341f8478fe


Ignore:
Timestamp:
10/01/14 18:04:20 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Fix issue for inserting link when current editor is different from preferred editor
Closes #1995

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/popup_link.php

    r2749 r2755  
    1818$hreflang = !empty($_GET['hreflang']) ? $_GET['hreflang'] : ''; 
    1919$title = !empty($_GET['title']) ? $_GET['title'] : ''; 
     20$plugin_id = !empty($_GET['plugin_id']) ? html::sanitizeURL($_GET['plugin_id']) : ''; 
    2021 
    2122// perhaps better to put active editor in session 
     
    2324$post_editor = $core->auth->getOption('editor'); 
    2425 
    25 dcPage::openPopup(__('Add a link'),$core->callBehavior('adminPopupLink', $post_editor[$post_format])); 
     26dcPage::openPopup(__('Add a link'),$core->callBehavior('adminPopupLink', $plugin_id)); 
    2627 
    2728echo '<h2 class="page-title">'.__('Add a link').'</h2>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map