Changeset 2682:cac55fdd7178 for inc/core
- Timestamp:
- 03/11/14 20:46:03 (12 years ago)
- Branch:
- default
- Children:
- 2683:fb8aa74332f1, 2684:599c0d392db2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.core.php
r2679 r2682 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 3Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 262 262 @param editor_id <b>string</b> Editor id (dcLegacyEditor, dcCKEditor, ...) 263 263 @return <b>array</b> An array of formaters names in values. 264 265 /** 266 if @param editor_id is empty: 267 return all formaters sorted by actives editors 268 269 if @param editor_id is not empty 270 return formaters for an editor if editor is active 271 return empty() array if editor is not active. 272 It can happens when a user choose an editor and admin deactivate that editor later 264 273 */ 265 274 public function getFormaters($editor_id='') … … 267 276 $formaters_list = array(); 268 277 269 if (!empty($editor_id) && isset($this->formaters[$editor_id])) { 270 $formaters_list = array_keys($this->formaters[$editor_id]); 278 if (!empty($editor_id)) { 279 if (isset($this->formaters[$editor_id])) { 280 $formaters_list = array_keys($this->formaters[$editor_id]); 281 } 271 282 } else { 272 283 foreach ($this->formaters as $editor => $formaters) {
Note: See TracChangeset
for help on using the changeset viewer.