[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5973] trunk/LedgerSMB/Scripts/contact.pm
- Subject: SF.net SVN: ledger-smb:[5973] trunk/LedgerSMB/Scripts/contact.pm
- From: ..hidden..
- Date: Mon, 26 Aug 2013 09:35:54 +0000
Revision: 5973
http://sourceforge.net/p/ledger-smb/code/5973
Author: einhverfr
Date: 2013-08-26 09:35:51 +0000 (Mon, 26 Aug 2013)
Log Message:
-----------
Moving plugins structure for perl modules to top of file so that it is generally applicable, can add methods, etc.
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/contact.pm
Modified: trunk/LedgerSMB/Scripts/contact.pm
===================================================================
--- trunk/LedgerSMB/Scripts/contact.pm 2013-08-24 11:10:13 UTC (rev 5972)
+++ trunk/LedgerSMB/Scripts/contact.pm 2013-08-26 09:35:51 UTC (rev 5973)
@@ -30,6 +30,16 @@
use strict;
use warnings;
+#Plugins
+opendir($dh, 'LedgerSMB/Entity/Plugins')
+ || die "can't opendir plugins directory: $!";
+my @pluginmods = grep { /^[^.]/ && -f "LedgerSMB/Entity/Plugins/$_" } readdir($dh);
+closedir $dh;
+
+for (@pluginmods){
+ do "LedgerSMB/Entity/Plugins/$_";
+}
+
my $locale = $LedgerSMB::App_State::Locale;
=head1 COPYRIGHT
@@ -245,12 +255,6 @@
opendir(my $dh, 'UI/Contact/plugins') || die "can't opendir plugins directory: $!";
my @plugins = grep { /^[^.]/ && -f "UI/Contact/plugins/$_" } readdir($dh);
closedir $dh;
- opendir($dh, 'LedgerSMB/Entity/Plugins') || die "can't opendir plugins directory: $!";
- my @pluginmods = grep { /^[^.]/ && -f "LedgerSMB/Entity/Plugins/$_" } readdir($dh);
- closedir $dh;
- for (@pluginmods){
- do "LedgerSMB/Entity/Plugins/$_";
- }
# Template info and rendering
my $template = LedgerSMB::Template->new(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits