From 16745aadc620a5b41601b24b2ecefb3b154b8b83 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 2 Feb 2012 04:35:26 +0000 Subject: [PATCH] only require flexihash once --- core/imageboard.pack.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index aeded1e5..afa12672 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -27,6 +27,8 @@ $tag_n = 0; // temp hack $_flexihash = null; $_fh_last_opts = null; +require_once "lib/flexihash.php"; + /** * An object representing an entry in the images table. As of 2.2, this no * longer necessarily represents an image per se, but could be a video, @@ -534,7 +536,6 @@ class Image { if($opts != $_fh_last_opts) { $_fh_last_opts = $opts; - require_once "lib/flexihash.php"; $_flexihash = new Flexihash(); foreach(explode(",", $opts) as $opt) { $parts = explode("=", $opt);