Index: trunk/phase3/languages/Language.php |
— | — | @@ -1086,7 +1086,7 @@ |
1087 | 1087 | private static function tsToIranian( $ts ) { |
1088 | 1088 | $gy = substr( $ts, 0, 4 ) -1600; |
1089 | 1089 | $gm = substr( $ts, 4, 2 ) -1; |
1090 | | - $gd = substr( $ts, 6, 2 ) -1; |
| 1090 | + $gd = (int)substr( $ts, 6, 2 ) -1; |
1091 | 1091 | |
1092 | 1092 | # Days passed from the beginning (including leap years) |
1093 | 1093 | $gDayNo = 365 * $gy |
— | — | @@ -2503,8 +2503,9 @@ |
2504 | 2504 | $tagType = 0; // 0-open, 1-close |
2505 | 2505 | $bracketState = 0; // 1-tag start, 2-tag name, 0-neither |
2506 | 2506 | $entityState = 0; // 0-not entity, 1-entity |
2507 | | - $tag = $ret = ''; // accumulated tag name, accumulated result string |
| 2507 | + $tag = $ret = $pRet = ''; // accumulated tag name, accumulated result string |
2508 | 2508 | $openTags = array(); // open tag stack |
| 2509 | + $pOpenTags = array(); |
2509 | 2510 | |
2510 | 2511 | $textLen = strlen( $text ); |
2511 | 2512 | $neLength = max( 0, $length - strlen( $ellipsis ) ); // non-ellipsis len if truncated |