Permalink
Browse files

merged readme changes

  • Loading branch information...
1 parent 1126d44 commit 0d6947ab8aa831c66576e58ee151356acae60570 @vicapow vicapow committed Feb 27, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 resources/scripts/recreate_tags.php
View
@@ -1,4 +1,4 @@
-# Openclipart
+
This is reimplementaion of [Open Clipart Library](http://openclipart.org/) web site (using [Slim](http://www.slimframework.com/) and [Twig](http://twig.sensiolabs.org/))
@@ -9,7 +9,7 @@
function str_to_tags($str){
global $mysqli;
- $tags = preg_split("/([\s,\-]+)/", $str);
+ $tags = preg_split("/[\s,\-]+/", $str);
$tags = array_map(function($tag) use($mysqli){
$tag = trim($mysqli->real_escape_string($tag));
$tag = preg_replace("/[^a-zA-Z0-9]/","", $tag); // remove all non character entities
@@ -99,4 +99,4 @@ function insert_clipart_tags($id, $tags){
$tags = str_to_tags($col['name']);
insert_tags($tags);
insert_clipart_tags($col['clipart'], $tags);
-}
+}

0 comments on commit 0d6947a

Please sign in to comment.