View | Details | Raw Unified | Return to bug 261498 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/phpvirtualbox/files/patch-endpoints_lib_language.php (+27 lines)
Added Link Here
1
--- endpoints/lib/language.php	2022-01-26 21:01:27.772959000 +0300
2
+++ endpoints/lib/language.php	2022-01-26 21:03:08.996051000 +0300
3
@@ -74,24 +74,7 @@
4
 		$arrXml = $this->objectsIntoArray($xmlObj);
5
 
6
 		$lang = array();
7
-		if(!@$arrXml['context'][0]) $arrXml['context'] = array($arrXml['context']);
8
-		foreach($arrXml['context'] as $c) {
9
 
10
-			if(!is_array($c) || !@$c['name']) continue;
11
-			if(!@$c['message'][0]) $c['message'] = array($c['message']);
12
-
13
-		   	$lang['contexts'][$c['name']] = array();
14
-		   	$lang['contexts'][$c['name']]['messages'] = array();
15
-
16
-			foreach($c['message'] as $m) {
17
-
18
-		       if(!is_array($m)) continue;
19
-
20
-		       $s = $m['source'];
21
-		       unset($m['source']);
22
-		       $lang['contexts'][$c['name']]['messages'][$s] = $m;
23
-	    	}
24
-		}
25
 		self::$langdata = array_merge_recursive(self::$langdata, $lang);
26
 	}
27
 

Return to bug 261498