From 2b628a395fd3789243003539a08fc856a541d219 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 4 Aug 2013 18:13:50 +0100 Subject: [PATCH] resolve_list -> resolve_aliases, to better describe what it actually does --- core/imageboard.pack.php | 4 ++-- ext/index/main.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index b8127e06..2a4b6a23 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -462,7 +462,7 @@ class Image { assert(is_array($tags)); - $tags = Tag::resolve_list($tags); + $tags = Tag::resolve_aliases($tags); assert(is_array($tags)); assert(count($tags) > 0); @@ -1054,7 +1054,7 @@ class Tag { * @param $tags Array of tags * @return Array of tags */ - public static function resolve_list($tags) { + public static function resolve_aliases($tags) { assert(is_array($tags)); $new = array(); diff --git a/ext/index/main.php b/ext/index/main.php index 0b7ae1d0..39493921 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -147,7 +147,7 @@ class Index extends Extension { global $config, $database, $page, $user; if($event->page_matches("post/list")) { if(isset($_GET['search'])) { - $search = url_escape(Tag::implode(Tag::resolve_list(Tag::explode($_GET['search'], false)))); + $search = url_escape(Tag::implode(Tag::resolve_aliases(Tag::explode($_GET['search'], false)))); if(empty($search)) { $page->set_mode("redirect"); $page->set_redirect(make_link("post/list/1"));