| 1 |
<?php |
<?php |
| 2 |
// $Id: fckeditor.admin.inc,v 1.1.2.46 2009/10/26 19:53:09 jorrit Exp $ |
// $Id: fckeditor.admin.inc,v 1.1.2.47 2009/11/02 18:53:11 jorrit Exp $ |
| 3 |
/** |
/** |
| 4 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
| 5 |
* Copyright (C) 2003-2008 Frederico Caldeira Knabben |
* Copyright (C) 2003-2008 Frederico Caldeira Knabben |
| 37 |
$editor_path = fckeditor_path(TRUE); |
$editor_path = fckeditor_path(TRUE); |
| 38 |
$fckconfig_file = $editor_path .'/fckconfig.js'; |
$fckconfig_file = $editor_path .'/fckconfig.js'; |
| 39 |
if (!file_exists($fckconfig_file)) { |
if (!file_exists($fckconfig_file)) { |
| 40 |
drupal_set_message(t('The FCKeditor component appears to be not installed correctly, because %checkfile could not be found.') .'<br/>'. t('Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %fckeditorpath and make sure that the directory %fckeditorsubdir and the file %fckeditorfile exist. Refer to the !readme for more information.', |
drupal_set_message( |
| 41 |
array( |
t('The FCKeditor component appears to be not installed correctly, because %checkfile could not be found.', |
| 42 |
'%checkfile' => $fckconfig_file, |
array( |
| 43 |
'!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net/download'), |
'%checkfile' => $fckconfig_file, |
| 44 |
'!readme' => l(t('readme.txt'), 'admin/help/fckeditor'), |
)) .'<br/>'. |
| 45 |
'%fckeditorpath' => $editor_path, |
t('Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %fckeditorpath and make sure that the directory %fckeditorsubdir and the file %fckeditorfile exist. Refer to the !readme for more information.', |
| 46 |
'%fckeditorsubdir' => $editor_path .'/editor', |
array( |
| 47 |
'%fckeditorfile' => $editor_path .'/fckeditor.js', |
'!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net/download'), |
| 48 |
)), 'error'); |
'!readme' => l(t('readme.txt'), 'admin/help/fckeditor'), |
| 49 |
|
'%fckeditorpath' => $editor_path, |
| 50 |
|
'%fckeditorsubdir' => $editor_path .'/editor', |
| 51 |
|
'%fckeditorfile' => $editor_path .'/fckeditor.js', |
| 52 |
|
)), 'error'); |
| 53 |
drupal_set_message(t('If you have FCKeditor already installed please edit !editgloballink and update FCKeditor path.', |
drupal_set_message(t('If you have FCKeditor already installed please edit !editgloballink and update FCKeditor path.', |
| 54 |
array( |
array( |
| 55 |
'!editgloballink' => l(t('FCKeditor Global Profile'), 'admin/settings/fckeditor/editg'), |
'!editgloballink' => l(t('FCKeditor Global Profile'), 'admin/settings/fckeditor/editg'), |