Fixed constant name.
authorRoland Haeder <roland@mxchange.org>
Sun, 18 May 2014 08:57:24 +0000 (10:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 18 May 2014 08:57:24 +0000 (10:57 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/stacker/file/class_BaseFileStack.php

index 47b7b5c..ec406c6 100644 (file)
@@ -89,7 +89,7 @@ class BaseFileStack extends BaseStacker {
 
                // Calculate header size
                $this->headerSize = (
-                       strlen(self::MAGIC) +
+                       strlen(self::STACK_MAGIC) +
                        strlen(self::SEPARATOR_HEADER_DATA) +
                        self::LENGTH_COUNT +
                        strlen(self::SEPARATOR_HEADER_DATA) +
@@ -193,7 +193,7 @@ class BaseFileStack extends BaseStacker {
                assert(count($this->header) == 3);
 
                // Check magic
-               assert($this->header[0] == self::MAGIC);
+               assert($this->header[0] == self::STACK_MAGIC);
 
                // Check length of count and seek position
                assert(strlen($this->header[1]) == self::LENGTH_COUNT);