Commit 636b37f0 authored by Corentin Bettiol's avatar Corentin Bettiol 💻
Browse files

change minor tag-related thing (oops)

parent 829cef6e
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ class TagManager extends Base
		$tags = explode(', ', $tags);
		$tags = str_replace(' ', '-', $tags);

		if($tags[0] != ''){
			// on ajoute chaque tag dans les tables correspondantes
			foreach ($tags as $tag)
			{
@@ -33,6 +34,7 @@ class TagManager extends Base
				]);
			}
		}
	}

	// supprime toutes les relations entre les tags et un post de blog ($post)
	function deleteTag($post)