diff --git a/includes/mysqli.php b/includes/mysqli.php
index 2d9e727..72cfbd5 100755
--- a/includes/mysqli.php
+++ b/includes/mysqli.php
@@ -435,7 +435,8 @@ class KleejaDatabase
{
$updating_related = true;
}
-
+
+ header('HTTP/1.1 500 Internal Server Error');
$error_message = "
ERROR IM MYSQL";
$error_message .= "";
$error_message .= '
';
diff --git a/includes/style.php b/includes/style.php
index 7b83121..5af9a71 100755
--- a/includes/style.php
+++ b/includes/style.php
@@ -144,7 +144,7 @@ class kleeja_style
'//iU' => 'display("\\2"); ?>',
'//iU' => '',
'//iU' => '',
- '/(|)/i' => '',
+ '/(|)/i' => '',
'/(.*?)<\/ODD\>/is' => " \\2 ",
'/(.*?)<\/EVEN>/is' => " \\2 ",
'//is' => "",
@@ -227,7 +227,14 @@ class kleeja_style
*/
protected function _vars_callback($matches)
{
- return '';
+ $variable = call_user_func(array('kleeja_style', '_var_callback'), $matches);
+
+ if(strpos($matches[0], '{lang') !== false || strpos($matches[0], '{olang') !== false)
+ {
+ return '=isset(' . $variable . ') ? ' . $variable . ' : \'' . $matches[0] . '\'?>';
+ }
+
+ return '=' . $variable . '?>';
}