[limb-svn] r5935 - in 3.x/trunk/limb/wysiwyg: settings src/template/tags

svn at limb-project.com svn at limb-project.com
Tue Jun 5 09:54:30 MSD 2007


Author: pachanga
Date: 2007-06-05 09:54:29 +0400 (Tue, 05 Jun 2007)
New Revision: 5935
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5935

Modified:
   3.x/trunk/limb/wysiwyg/settings/wysiwyg.ini
   3.x/trunk/limb/wysiwyg/src/template/tags/wysiwyg.tag.php
Log:
-- renaming wysiwyg attribute to profile

Modified: 3.x/trunk/limb/wysiwyg/settings/wysiwyg.ini
===================================================================
--- 3.x/trunk/limb/wysiwyg/settings/wysiwyg.ini	2007-06-04 21:48:05 UTC (rev 5934)
+++ 3.x/trunk/limb/wysiwyg/settings/wysiwyg.ini	2007-06-05 05:54:29 UTC (rev 5935)
@@ -2,7 +2,7 @@
 ; WYSIWYG configuration file
 ;============================
 
-wysiwyg = FCKEditor
+profile = FCKEditor
 
 [FCKEditor]
 runtimeIncludeFile = limb/wysiwyg/src/template/components/lmbFCKEditorComponent.class.php

Modified: 3.x/trunk/limb/wysiwyg/src/template/tags/wysiwyg.tag.php
===================================================================
--- 3.x/trunk/limb/wysiwyg/src/template/tags/wysiwyg.tag.php	2007-06-04 21:48:05 UTC (rev 5934)
+++ 3.x/trunk/limb/wysiwyg/src/template/tags/wysiwyg.tag.php	2007-06-05 05:54:29 UTC (rev 5935)
@@ -1,13 +1,13 @@
 <?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- *
- * @copyright  Copyright &copy; 2004-2007 BIT
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- * @version    $Id$
- * @package    $package$
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ *
+ * @copyright  Copyright &copy; 2004-2007 BIT
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ * @version    $Id$
+ * @package    $package$
  */
 require_once('limb/wact/src/tags/form/control.inc.php');
 define('LIMB_WYSIWYG_DIR', dirname(__FILE__) . '/../../../');
@@ -20,7 +20,7 @@
   var $runtimeComponentName = 'lmbWysiwygComponent';
   var $runtimeIncludeFile = 'limb/wysiwyg/src/template/components/lmbWysiwygComponent.class.php';
   var $ini_file_name = 'wysiwyg.ini';
-  var $type;
+  var $profile;
 
   function prepare()
   {
@@ -31,17 +31,17 @@
   {
     $ini = lmbToolkit :: instance()->getConf($this->ini_file_name);
 
-    if(($this->type = $this->getAttribute('wysiwyg')) == '' &&
-       ($this->type = $ini->getOption('wysiwyg')) == '')
+    if(($this->profile = $this->getAttribute('profile')) == '' &&
+       ($this->profile = $ini->getOption('profile')) == '')
     {
-       $this->type = null;
+       $this->profile = null;
        return;
     }
 
-    if($ini->getOption('runtimeIncludeFile', $this->type))
-      $this->runtimeIncludeFile = $ini->getOption('runtimeIncludeFile', $this->type);
-    if($ini->getOption('runtimeComponentName', $this->type))
-      $this->runtimeComponentName = $ini->getOption('runtimeComponentName', $this->type);
+    if($ini->getOption('runtimeIncludeFile', $this->profile))
+      $this->runtimeIncludeFile = $ini->getOption('runtimeIncludeFile', $this->profile);
+    if($ini->getOption('runtimeComponentName', $this->profile))
+      $this->runtimeComponentName = $ini->getOption('runtimeComponentName', $this->profile);
 
   }
 
@@ -51,7 +51,7 @@
 
   function generateTagContent($code)
   {
-    $code->writePhp($this->getComponentRefCode() . '->initWysiwyg("'. $this->ini_file_name . '","'.$this->type.'" );');
+    $code->writePhp($this->getComponentRefCode() . '->initWysiwyg("'. $this->ini_file_name . '","'.$this->profile.'" );');
     $code->writePhp($this->getComponentRefCode() . '->renderContents();');
   }
 



More information about the limb-svn mailing list