summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/gettext.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-16 10:58:22 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-16 10:58:22 +0000
commit6ef403f52cb9d755a32535482ae0bedf793cfb5d (patch)
tree87ff8208c1f40dd81f4a9f7c57b3a282c974c42d /wp-inst/wp-includes/gettext.php
parent1ddd64978b062c9d7636012d247e0475e1f5f925 (diff)
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@335 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/gettext.php')
-rw-r--r--wp-inst/wp-includes/gettext.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/wp-inst/wp-includes/gettext.php b/wp-inst/wp-includes/gettext.php
index 45af0f6..ad605cf 100644
--- a/wp-inst/wp-includes/gettext.php
+++ b/wp-inst/wp-includes/gettext.php
@@ -61,12 +61,15 @@ class gettext_reader {
* @return Integer from the Stream
*/
function readint() {
+ $stream = $this->STREAM->read(4);
if ($this->BYTEORDER == 0) {
// low endian
- return array_shift(unpack('V', $this->STREAM->read(4)));
+ $unpacked = unpack('V',$stream);
+ return array_shift($unpacked);
} else {
// big endian
- return array_shift(unpack('N', $this->STREAM->read(4)));
+ $unpacked = unpack('N',$stream);
+ return array_shift($unpacked);
}
}