[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 408
Author: gradator
Date: 2007-01-19 01:37:31 +0000 (Fri, 19 Jan 2007)
Log Message:
-----------
WTF !?
Modified Paths:
--------------
branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/Main.pm
Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/Main.pm 2007-01-19 00:56:25 UTC (rev 407)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/Main.pm 2007-01-19 01:37:31 UTC (rev 408)
@@ -579,13 +579,13 @@
{
my ( $class , $panel , $content, $cookie ) = @_;
-# if( ref( $class ) eq 'HASH' )
-# {
-# $cookie2 = $cookie;
-# $cookie = $content;
-# $content = $panel;
-# $panel = $class;
-# }
+ # WTF !?!?
+ if( ref( $class ) eq 'HASH' )
+ {
+ $cookie = $content;
+ $content = $panel;
+ $panel = $class;
+ }
my $maintemplate = $panel->{'template'};
$maintemplate->param( CENTRE => $content );