Changeset 129
- Timestamp:
- 06/07/2005 05:38:11 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
bb-admin/tag-merge.php (modified) (2 diffs)
-
bb-admin/tag-rename.php (modified) (1 diff)
-
bb-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/tag-merge.php
r127 r129 9 9 $old_id = (int) $_POST['id' ]; 10 10 $tag = $_POST['tag']; 11 if ( ! $ new_tag = get_tag_by_name( $tag ) )11 if ( ! $tag = get_tag_by_name( $tag ) ) 12 12 die('Tag specified not found.'); 13 13 … … 15 15 die('Tag to be merged not found.'); 16 16 17 if ( $merged = merge_tags( $old_id, $ new_tag->tag_id ) ) {17 if ( $merged = merge_tags( $old_id, $tag->tag_id ) ) { 18 18 echo 'Number of topics from which the old tag was removed: ' . $merged['old_count'] . "<br />\n"; 19 19 echo 'Number of topics to which the new tag was added: ' . $merged['diff_count'] . "<br />\n"; 20 20 echo 'Number of rows deleted from tags table: ' . $merged['destroyed']['tags'] ."<br />\n"; 21 echo '<a href="' . $bb->tagpath . "tags/$new_tag->raw_tag". '">New Tag</a>';21 echo '<a href="' . get_tag_link() . '">New Tag</a>'; 22 22 } else { 23 23 die("Something odd happened when attempting to merge those tags.<br />\n<a href=\"" . $_SERVER['HTTP_REFERER'] . '">Try Again?</a>'); -
trunk/bb-admin/tag-rename.php
r123 r129 15 15 16 16 if ( $tag = rename_tag( $tag_id, $tag ) ) 17 header('Location: ' . $bb->tagpath . "tags/$tag");17 header('Location: ' . get_tag_link() ); 18 18 else 19 19 die('There already exists a tag by that name or the name is invalid. <a href="' . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); -
trunk/bb-includes/functions.php
r127 r129 684 684 685 685 if ( $bbdb->query("UPDATE $bbdb->tags SET tag = '$tag', raw_tag = '$raw_tag' WHERE tag_id = '$tag_id'") ) 686 return $tag;686 return get_tag_by_name( $tag ); 687 687 return false; 688 688 }
Note: See TracChangeset
for help on using the changeset viewer.