[otrs-cvs] ITSMCore ITSMCore.sopm,1.33,1.34
cvs-log at otrs.org
cvs-log at otrs.org
Tue Apr 1 11:54:25 GMT 2008
Comments:
Update of /home/cvs/ITSMCore
In directory lancelot:/tmp/cvs-serv1410
Modified Files:
ITSMCore.sopm
Log Message:
Added code to change the background color to the CodeReinstall- and CodeUpgrade-Section.
Author: mh
Index: ITSMCore.sopm
===================================================================
RCS file: /home/cvs/ITSMCore/ITSMCore.sopm,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** ITSMCore.sopm 29 Mar 2008 21:53:22 -0000 1.33
--- ITSMCore.sopm 1 Apr 2008 11:54:20 -0000 1.34
***************
*** 394,397 ****
--- 394,439 ----
}
</CodeInstall>
+ <CodeReinstall>
+ # change background color of standard theme
+ my $CssFile = $Self->{ConfigObject}->Get('Home') . "/Kernel/Output/HTML/Standard/css.dtl";
+ if (!-e $CssFile . ".save" && open (IN, "< $CssFile")) {
+
+ my $Content = '';
+ while (<IN>) {
+ if ($_ =~ /^body /) {
+ $_ =~ s/background-color\:\#bbddff\;/background-color\:\#003399\;/;
+ }
+ $Content .= $_;
+ }
+ close (IN);
+
+ if (open (OUT, "> $CssFile")) {
+ binmode(OUT);
+ print OUT $Content;
+ close (OUT);
+ }
+ }
+ </CodeReinstall>
+ <CodeUpgrade>
+ # change background color of standard theme
+ my $CssFile = $Self->{ConfigObject}->Get('Home') . "/Kernel/Output/HTML/Standard/css.dtl";
+ if (!-e $CssFile . ".save" && open (IN, "< $CssFile")) {
+
+ my $Content = '';
+ while (<IN>) {
+ if ($_ =~ /^body /) {
+ $_ =~ s/background-color\:\#bbddff\;/background-color\:\#003399\;/;
+ }
+ $Content .= $_;
+ }
+ close (IN);
+
+ if (open (OUT, "> $CssFile")) {
+ binmode(OUT);
+ print OUT $Content;
+ close (OUT);
+ }
+ }
+ </CodeUpgrade>
<CodeUninstall>
# change background color of standard theme back to original
More information about the cvs-log
mailing list