Skip to content

Commit

Permalink
Item8428: TWiki::userToWikiName is now Foswiki::Func::userToWikiName.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/NotificationPlugin@6161 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
HarlanStenn authored and HarlanStenn committed Jan 27, 2010
1 parent f197906 commit db13c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/mailnotify-NP
Expand Up @@ -120,7 +120,7 @@ sub main
my $count = 0;
foreach my $line ( split( /\n/, $allChanges ) ) {
my ( $web, $topicName, $userName, $changeTime, $revision ) = split( /\t/, $line );
my $wikiuser = &Foswiki::userToWikiName( $userName, 1 );
my $wikiuser = &Foswiki::Func::userToWikiName( $userName, 1 );
#print "LINE = $line\n";
#print "WEBS = $notify{$user}{'web'}\n";
#print "TOPICS = $notify{$user}{'topic'}\n";
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/NotificationPlugin.pm
Expand Up @@ -123,7 +123,7 @@ sub beforeSaveHandler
# This handler is called by Foswiki::Store::saveTopic just before the save action.
# New hook in Foswiki::Plugins $VERSION = '1.010'

my $wikiUser = &Foswiki::userToWikiName( $user, 1 );
my $wikiUser = &Foswiki::Func::userToWikiName( $user, 1 );
my @notifyUsers = ();
push( @notifyUsers, getUsersToNotify( $_[2], $_[1], 0 ) );
push( @notifyUsers, getUsersToNotify( $_[2], $_[1], 1 ) );
Expand Down

0 comments on commit db13c15

Please sign in to comment.