Changeset 788


Ignore:
Timestamp:
Feb 9, 2014, 11:36:25 PM (11 years ago)
Author:
maron
Message:
  • Fixed: Low capitals at name of player in addon
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/CreateAddon.php

    r784 r788  
    77 
    88  // Replace special codes by lua functions
    9   function ReplaceVarInText($string)
    10   {
    11     $string = str_replace('$N', '"..strlower(UnitName("player")).."', $string);
    12     $string = str_replace('$n', '"..strlower(UnitName("player")).."', $string);
    13     $string = str_replace('$C', '"..strlower(UnitClass("player")).."', $string);
    14     $string = str_replace('$c', '"..strlower(UnitClass("player")).."', $string);
    15     $string = str_replace('$R', '"..strlower(UnitRace("player")).."', $string);
    16     $string = str_replace('$r', '"..strlower(UnitRace("player")).."', $string);
     9  function ReplaceVarInText($string, $strlower = 'strlower')
     10  {
     11   
     12    $string = str_replace('$N', '"..'.$strlower.'(UnitName("player")).."', $string);
     13    $string = str_replace('$n', '"..'.$strlower.'(UnitName("player")).."', $string);
     14    $string = str_replace('$C', '"..'.$strlower.'(UnitClass("player")).."', $string);
     15    $string = str_replace('$c', '"..'.$strlower.'(UnitClass("player")).."', $string);
     16    $string = str_replace('$R', '"..'.$strlower.'(UnitRace("player")).."', $string);
     17    $string = str_replace('$r', '"..'.$strlower.'(UnitRace("player")).."', $string);
    1718    $Gender = '$G';
    1819    while(strpos($string, $Gender) !== false)
     
    7374    $string = str_replace('$B', '\r\n', $string);
    7475    $string = str_replace('$b', '\r\n', $string);
    75     $string = $this->ReplaceVarInText($string);
     76    $string = $this->ReplaceVarInText($string,'');
    7677    return($string);
    7778  }
  • trunk/includes/Version.php

    r787 r788  
    66// and system will need database update.
    77
    8 $Revision = 787; // Subversion revision
     8$Revision = 788; // Subversion revision
    99$DatabaseRevision = 787; // Database structure revision
    10 $ReleaseTime = '2014-02-05';
     10$ReleaseTime = '2014-02-09';
Note: See TracChangeset for help on using the changeset viewer.