Changeset 1688 in subversion
- Timestamp:
- Aug 28, 2008 5:57:49 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_template.php
r1660 r1688 481 481 * @param string Input string to parse 482 482 * @return string Altered input string 483 * @todo Use DOM-parser to traverse template HTML 483 484 * @todo Maybe a cache. 484 485 */ … … 495 496 private function xml_command_callback($matches) 496 497 { 497 if (isset($matches[2])) { 498 $str_attrib = $matches[2]; 499 } else { 500 $str_attrib = ''; 501 } 502 503 if (isset($matches[3])) { 504 $add_attrib = $matches[3]; 505 } else { 506 $add_attrib = array(); 507 } 508 509 $command = $matches[1]; 510 //matches[0] is the entire matched portion of the string 511 512 return $this->xml_command($command, $str_attrib, $add_attrib); 498 $str_attrib = isset($matches[2]) ? $matches[2] : ''; 499 $add_attrib = isset($matches[3]) ? $matches[3] : array(); 500 501 $command = $matches[1]; 502 //matches[0] is the entire matched portion of the string 503 504 return $this->xml_command($command, $str_attrib, $add_attrib); 513 505 } 514 506
Note: See TracChangeset
for help on using the changeset viewer.
