From b428a56e5faa8ed1ae0593e298d05565bbcf7296 Mon Sep 17 00:00:00 2001 From: Shish <shish@shishnet.org> Date: Thu, 12 Nov 2009 09:27:09 +0000 Subject: [PATCH] fail --- core/imageboard.pack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 68b25489..fca5740d 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -452,8 +452,8 @@ class Image { $tmpl = str_replace('$id', $this->id, $tmpl); $tmpl = str_replace('$hash', $this->hash, $tmpl); - $tmpl = str_replace('$hash_ab', substr($hash, 0, 2), $tmpl); - $tmpl = str_replace('$hash_cd', substr($hash, 2, 2), $tmpl); + $tmpl = str_replace('$hash_ab', substr($this->hash, 0, 2), $tmpl); + $tmpl = str_replace('$hash_cd', substr($this->hash, 2, 2), $tmpl); $tmpl = str_replace('$tags', $_escape($tags), $tmpl); $tmpl = str_replace('$base', $base_href, $tmpl); $tmpl = str_replace('$ext', $this->ext, $tmpl);