Changeset 28806 for trunk/src/wp-includes/pomo/mo.php
- Timestamp:
- 06/23/2014 02:47:08 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pomo/mo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/mo.php
r28472 r28806 76 76 $originals_table = chr(0); 77 77 78 $reader = new POMO_Reader(); 79 78 80 foreach($entries as $entry) { 79 81 $originals_table .= $this->export_original($entry) . chr(0); 80 $length = strlen($this->export_original($entry));82 $length = $reader->strlen($this->export_original($entry)); 81 83 fwrite($fh, pack('VV', $length, $current_addr)); 82 84 $current_addr += $length + 1; // account for the NULL byte after … … 84 86 85 87 $exported_headers = $this->export_headers(); 86 fwrite($fh, pack('VV', strlen($exported_headers), $current_addr));88 fwrite($fh, pack('VV', $reader->strlen($exported_headers), $current_addr)); 87 89 $current_addr += strlen($exported_headers) + 1; 88 90 $translations_table = $exported_headers . chr(0); … … 90 92 foreach($entries as $entry) { 91 93 $translations_table .= $this->export_translations($entry) . chr(0); 92 $length = strlen($this->export_translations($entry));94 $length = $reader->strlen($this->export_translations($entry)); 93 95 fwrite($fh, pack('VV', $length, $current_addr)); 94 96 $current_addr += $length + 1;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)