Dotclear

Changeset 3024 for plugins/tinyMce


Ignore:
Timestamp:
04/17/11 15:58:45 (13 years ago)
Author:
Moe
Message:

TinyMCE 0.2.6: Dotclear 2.2 compatibility on pages

Location:
plugins/tinyMce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/tinyMce/_define.php

    r2705 r3024  
    2626     /* Description */        'TinyMCE editor', 
    2727     /* Author */                  'Moe (http://gniark.net/)', 
    28      /* Version */                 '0.2.3', 
     28     /* Version */                 '0.2.6', 
    2929     /* Permissions */        'usage,contentadmin' 
    3030); 
  • plugins/tinyMce/admin/page.php

    r2705 r3024  
    11<?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
     2# -- BEGIN LICENSE BLOCK --------------------------------------- 
    33# 
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2009 Olivier Meunier and contributors 
     6# Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
    99# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1010# 
    11 # -- END LICENSE BLOCK ------------------------------------ 
     11# -- END LICENSE BLOCK ----------------------------------------- 
     12 
    1213if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1314dcPage::check('pages,contentadmin'); 
     
    3839 
    3940$can_view_page = true; 
    40 $can_edit_page = $core->auth->check('page,usage',$core->blog->id); 
    41 $can_publish = $core->auth->check('page,publish,contentadmin',$core->blog->id); 
     41$can_edit_page = $core->auth->check('pages,usage',$core->blog->id); 
     42$can_publish = $core->auth->check('pages,publish,contentadmin',$core->blog->id); 
    4243$can_delete = false; 
    4344 
     
    176177      
    177178     # Magic tweak :) 
    178      $core->blog->settings->setNameSpace('pages'); 
    179       
    180      $core->blog->settings->post_url_format = $page_url_format; 
    181      $core->blog->settings->setNameSpace('system'); 
     179     $core->blog->settings->system->post_url_format = $page_url_format; 
    182180      
    183181     $cur->post_type = 'page'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map