[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.89, 1.90
Ivan,,,
ivan at wavetail.420.am
Fri Jul 31 06:20:55 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv5318/FS/FS/ClientAPI
Modified Files:
MyAccount.pm
Log Message:
skin up self-service according to config passed from backend, RT#5530
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- MyAccount.pm 30 Jul 2009 09:19:20 -0000 1.89
+++ MyAccount.pm 31 Jul 2009 13:20:53 -0000 1.90
@@ -55,6 +55,25 @@
} );
}
+sub skin_info {
+ #my $p = shift;
+
+ my $conf = new FS::Conf;
+
+ my %skin = (
+ 'head' => join("\n", $conf->config('selfservice-head') ),
+ 'body_header' => join("\n", $conf->config('selfservice-body_header') ),
+ 'body_footer' => join("\n", $conf->config('selfservice-body_footer') ),
+ 'body_bgcolor' => scalar( $conf->config('selfservice-body_bgcolor') ),
+ 'box_bgcolor' => scalar( $conf->config('selfservice-box_bgcolor') ),
+
+ 'company_name' => scalar($conf->config('company_name')),
+ );
+
+ \%skin;
+
+}
+
sub login_info {
my $p = shift;
More information about the freeside-commits
mailing list