resolve_list -> resolve_aliases, to better describe what it actually does
This commit is contained in:
parent
7e89481105
commit
2b628a395f
@ -462,7 +462,7 @@ class Image {
|
|||||||
|
|
||||||
assert(is_array($tags));
|
assert(is_array($tags));
|
||||||
|
|
||||||
$tags = Tag::resolve_list($tags);
|
$tags = Tag::resolve_aliases($tags);
|
||||||
|
|
||||||
assert(is_array($tags));
|
assert(is_array($tags));
|
||||||
assert(count($tags) > 0);
|
assert(count($tags) > 0);
|
||||||
@ -1054,7 +1054,7 @@ class Tag {
|
|||||||
* @param $tags Array of tags
|
* @param $tags Array of tags
|
||||||
* @return Array of tags
|
* @return Array of tags
|
||||||
*/
|
*/
|
||||||
public static function resolve_list($tags) {
|
public static function resolve_aliases($tags) {
|
||||||
assert(is_array($tags));
|
assert(is_array($tags));
|
||||||
|
|
||||||
$new = array();
|
$new = array();
|
||||||
|
@ -147,7 +147,7 @@ class Index extends Extension {
|
|||||||
global $config, $database, $page, $user;
|
global $config, $database, $page, $user;
|
||||||
if($event->page_matches("post/list")) {
|
if($event->page_matches("post/list")) {
|
||||||
if(isset($_GET['search'])) {
|
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)) {
|
if(empty($search)) {
|
||||||
$page->set_mode("redirect");
|
$page->set_mode("redirect");
|
||||||
$page->set_redirect(make_link("post/list/1"));
|
$page->set_redirect(make_link("post/list/1"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user