From 0c7c90f2cd8506b8ee1dadc72d797c6be133bf9f Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 12 Nov 2009 09:23:47 +0000 Subject: [PATCH] hash_ab and hash_cd templates for image URLs --- core/imageboard.pack.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index b56e81ea..68b25489 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -452,6 +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('$tags', $_escape($tags), $tmpl); $tmpl = str_replace('$base', $base_href, $tmpl); $tmpl = str_replace('$ext', $this->ext, $tmpl);