Changeset 22203
- Timestamp:
- Apr 14, 2013, 7:30:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/main.inc.php
r20517 r22203 72 72 function ed_get_all_alt_names($arr, $name) 73 73 { 74 if (preg_match_all('#\[lang=(.*?)\](.*?)\[/lang\]#is', $name, $matches ))75 { 76 foreach ($matches [2] as $alt)77 { 78 $arr[] = $alt;74 if (preg_match_all('#\[lang=(.*?)\](.*?)\[/lang\]#is', $name, $matches, PREG_SET_ORDER)) 75 { 76 foreach ($matches as $match) 77 { 78 @$arr[$match[1]] .= $match[2]; 79 79 } 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.