Ignore:
Timestamp:
09/29/11 15:48:49 (8 years ago)
Author:
plg
Message:

bug 2449 fixed: in the "tags box" on batch manager and picture_modify, we
should only display the tag in the current user language, not the tag in all
available languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r12032 r12259  
    20722072} 
    20732073 
    2074 function get_taglist($query) 
     2074function get_taglist($query, $only_user_language=true) 
    20752075{ 
    20762076  $result = pwg_query($query); 
     
    20792079  while ($row = pwg_db_fetch_assoc($result)) 
    20802080  { 
    2081     if (preg_match_all('#\[lang=(.*?)\](.*?)\[/lang\]#is', $row['name'], $matches)) 
     2081    if (!$only_user_language and preg_match_all('#\[lang=(.*?)\](.*?)\[/lang\]#is', $row['name'], $matches)) 
    20822082    { 
    20832083      foreach ($matches[2] as $tag_name) 
Note: See TracChangeset for help on using the changeset viewer.