Skip to content

Commit

Permalink
97-tag-it-is-added-to-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Jul 24, 2009
1 parent f8a9356 commit 4cdd1db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/omb/plugins/omb.php
Expand Up @@ -325,10 +325,12 @@ function wp_set_post_fields( &$model, &$rec ) {

include 'wp-content/language/lang_chooser.php'; //Loads the language-file

if (strcmp(utf8_decode($_POST['tags']), $txt['postform_tagit'])
|| ($_POST['tags'] == $txt['postform_tagit']))
$t1 = html_entity_decode($txt['postform_tagit']);
$t2 = html_entity_decode($_POST['tags']);

if (ereg_replace("[^A-Za-z0-9]","",$t1) == ereg_replace("[^A-Za-z0-9]","",$t2))
return;

if (strstr( $_POST['tags'], "," ))
$tags = split( ',', $_POST['tags'] );
else
Expand Down
5 changes: 1 addition & 4 deletions db/library/dbscript/model.php
Expand Up @@ -271,7 +271,7 @@ function set_categories(&$rec,&$req,&$atomentry) {
$j->save_changes();
$added[] = $req->$cname;
} elseif (!empty($req->$cname)) {
if (isset_admin_email()) {

$c = $Category->base();
$c->set_value( 'name', strtolower($req->$cname));
$c->set_value( 'term', strtolower($req->$cname));
Expand All @@ -280,9 +280,6 @@ function set_categories(&$rec,&$req,&$atomentry) {
$j->save_changes();
$added[] = $req->$cname;
admin_alert( "created a new category: ".$req->$cname." at ".$req->base );
} else {
trigger_error("Sorry, I could not create the new Category because the administrator e-mail address has not been set.", E_USER_ERROR);
}
}
}
}
Expand Down

0 comments on commit 4cdd1db

Please sign in to comment.