it *was* in the core API :P

git-svn-id: file:///home/shish/svn/shimmie2/trunk@230 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-05 21:53:52 +00:00
parent 56d63355dd
commit 4a755da2c0
2 changed files with 2 additions and 8 deletions

View file

@ -283,12 +283,6 @@ function array_remove($array, $to_remove) {
return $a2;
}
function array_add($array, $element) {
$array[] = $element;
$array = array_unique($array);
return $array;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* Event API *

View file

@ -136,7 +136,7 @@ class TagListTheme extends Themelet {
}
else {
$tags = array_remove($tags, "-$tag");
$tags = array_add($tags, $tag);
$tags = array_push($tags, $tag);
return "<a href='".$this->tag_link(join(' ', $tags))."' title='Add' rel='nofollow'>A</a>";
}
}
@ -147,7 +147,7 @@ class TagListTheme extends Themelet {
}
else {
$tags = array_remove($tags, $tag);
$tags = array_add($tags, "-$tag");
$tags = array_push($tags, "-$tag");
return "<a href='".$this->tag_link(join(' ', $tags))."' title='Subtract' rel='nofollow'>S</a>";
}
}