Changeset 22203


Ignore:
Timestamp:
Apr 14, 2013, 7:30:43 AM (11 years ago)
Author:
rvelices
Message:

extended description compatibility with autocomplete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/main.inc.php

    r20517 r22203  
    7272function ed_get_all_alt_names($arr, $name)
    7373{
    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];
    7979    }
    8080  }
Note: See TracChangeset for help on using the changeset viewer.