Ignore:
Timestamp:
Feb 15, 2010, 12:38:14 PM (15 years ago)
Author:
maron
Message:

Chyba v kodu, ukládání do proměné po filtrování mezer v oslovení

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/create_addon.php

    r323 r324  
    2424      $Man = substr($Man, 0, strpos($Man, ':'));
    2525      $Woman = substr($Woman, 0, strpos($Woman, ';'));
    26       str_replace(' ', '', $Man);
    27       str_replace(' ', '', $Woman);
     26      $Man = str_replace(' ', '', $Man);
     27      $Woman = str_replace(' ', '', $Woman);
    2828      $string = $Before.'"..gsub(gsub(UnitSex("player"), "^2$", "'.
    2929      $Man.'"), "^3$", "'.$Woman.'").."'.$After;
     
    3838      $Man = substr($Man, 0, strpos($Man, ':'));
    3939      $Woman = substr($Woman, 0, strpos($Woman, ';'));
    40       str_replace(' ', '', $Man);
    41       str_replace(' ', '', $Woman);
     40      $Man = str_replace(' ', '', $Man);
     41      $Woman = str_replace(' ', '', $Woman);
    4242      $string = $Before.'"..gsub(gsub(UnitSex("player"), "^2$", "'.$Man.'"), "^3$", "'.$Woman.'").."'.$After;
    4343    }
     
    5858    $string = str_replace('$b $b', ' ', $string);   
    5959    $string = str_replace('$b', ' ', $string); 
     60    $string = $this->ReplaceVarInText($string); 
    6061    while(strpos($string, '  '))
    6162      $string = str_replace('  ', ' ', $string);
    62     $string = $this->ReplaceVarInText($string); 
    6363    return($string);
    6464  }
Note: See TracChangeset for help on using the changeset viewer.