Code Duplication    Length = 11-12 lines in 2 locations

www/install/init_database.php 1 location

@@ 185-195 (lines=11) @@
182
	$cachestore=new $inst_store(".",$cache_config);
183
184
	echo "== creating Ariadne Session Store\n\n";
185
	if ($cachestore->initialize()) {
186
		foreach ($cacheproperties as $name => $property) {
187
			$cachestore->create_property($name, $property);
188
		}
189
		$cachestore->add_type("pcache","pobject");
190
		$cachestore->add_type("pcache","pcache");
191
192
		$cachestore->save( '/', 'pobject', new baseObject );
193
	} else {
194
		error("store not initialized.");
195
	}
196
	$cachestore->close();
197
198
?>

www/install/upgrade/9.0/install.cache_store.php 1 location

@@ 11-22 (lines=12) @@
8
	require_once("../init_database_data.php");
9
10
	echo "== creating Ariadne Cache Store\n\n";
11
	if ($cachestore->initialize()) {
12
13
		foreach ($cacheproperties as $name => $property) {
14
			$cachestore->create_property($name, $property);
15
		}
16
		$cachestore->add_type("pcache","pobject");
17
		$cachestore->add_type("pcache","pcache");
18
19
		$cachestore->save( '/', 'pobject', new baseObject );
20
	} else {
21
		error("store not initialized.");
22
	}
23
	$cachestore->close();
24
?>
25
</pre>