Skip to content

Commit

Permalink
Item11808: reverting perltidy
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/LdapNgPlugin@14731 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed May 7, 2012
1 parent 5498363 commit 14260a8
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 291 deletions.
49 changes: 20 additions & 29 deletions lib/Foswiki/Plugins/LdapNgPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,40 @@ package Foswiki::Plugins::LdapNgPlugin;
use strict;
use vars qw($VERSION $RELEASE $core $NO_PREFS_IN_TOPIC $SHORTDESCRIPTION);

$VERSION = '$Rev: 20110106 (2011-01-06) $';
$RELEASE = '4.00';
$VERSION = '$Rev: 20110106 (2011-01-06) $';
$RELEASE = '4.00';
$NO_PREFS_IN_TOPIC = 1;
$SHORTDESCRIPTION = 'Query and display data from an LDAP directory';
$SHORTDESCRIPTION = 'Query and display data from an LDAP directory';

###############################################################################
sub initPlugin {
sub initPlugin {

Foswiki::Func::registerTagHandler(
'LDAP',
sub {
return getCore(shift)->handleLdap(@_);
}
);
Foswiki::Func::registerTagHandler('LDAP', sub {
return getCore(shift)->handleLdap(@_);
});

Foswiki::Func::registerTagHandler(
'LDAPUSERS',
sub {
return getCore(shift)->handleLdapUsers(@_);
}
);
Foswiki::Func::registerTagHandler('LDAPUSERS', sub {
return getCore(shift)->handleLdapUsers(@_);
});

Foswiki::Func::registerTagHandler(
'EMAIL2WIKINAME',
sub {
return getCore(shift)->handleEmailToWikiName(@_);
}
);
Foswiki::Func::registerTagHandler('EMAIL2WIKINAME', sub {
return getCore(shift)->handleEmailToWikiName(@_);
});

$core = undef;
$core = undef;

return 1;
return 1;
}

###############################################################################
sub getCore {

unless ( defined $core ) {
require Foswiki::Plugins::LdapNgPlugin::Core;
$core = Foswiki::Plugins::LdapNgPlugin::Core->new(@_);
}
unless (defined $core) {
require Foswiki::Plugins::LdapNgPlugin::Core;
$core = Foswiki::Plugins::LdapNgPlugin::Core->new(@_);
}

return $core;
return $core;
}

1;
Loading

0 comments on commit 14260a8

Please sign in to comment.