R31358 - /branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php

Author: nathangray
New Revision: 31358

URL: http://www.egroupware.org/viewvc/egroupware?rev=31358&view=rev
Log:
Only expand value from content if it has a special character (@ or $)

Modified:
branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php

Modified: branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php?rev=31358&r1=31357&r2=31358&view=diff

— branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php (original)
+++ branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php Thu Jul 8 15:08:51 2010
@@ -289,7 +289,10 @@
public function setContent(array $content)
{
// set own content

  •   $value = $this->expandName($this->name, $content);
    
  •   if (isset($this->value) && ($this->value[0] == '@' || strpos($this->value,'$') !== false))
    
  •   {
    
  •   	$value = $this->expandName($this->value, $content);
    
  •   }
      
      // Don't override explicitly set value
      // TODO: find a way to make this work so we can call setContent() twice on the same widget tree
    

This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first – http://p.sf.net/sfu/sprint-com-first


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs