Navigation Menu

Skip to content

Commit

Permalink
Fixed issue #6452: File Upload not working with embedded_layout use
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 9, 2012
1 parent bc5c35f commit 7f453f6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions application/helpers/common_helper.php
Expand Up @@ -7288,26 +7288,26 @@ function getHeader($meta = false)
$languagecode = Yii::app()->getConfig('defaultlang');
}

if ( !$embedded )
$header= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{$languagecode}\" lang=\"{$languagecode}\"";
if (getLanguageRTL($languagecode))
{
$header= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{$languagecode}\" lang=\"{$languagecode}\"";
if (getLanguageRTL($languagecode))
{
$header.=" dir=\"rtl\" ";
}
$header.= ">\n\t<head>\n";
$header.=" dir=\"rtl\" ";
}
$header.= ">\n\t<head>\n";

if ($meta)
$header .= $meta;
if ($meta)
$header .= $meta;

if ( !$embedded )
{
return $header;
}

global $embedded_headerfunc;

if ( function_exists( $embedded_headerfunc ) )
return $embedded_headerfunc();
return $embedded_headerfunc($header);
}


Expand Down

0 comments on commit 7f453f6

Please sign in to comment.