Code Duplication    Length = 6-8 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

@@ 3038-3045 (lines=8) @@
3035
		return $config->site;
3036
	}
3037
3038
	public function currentsection($path="") {
3039
	global $ARConfig;
3040
		if (!$path) {
3041
			$path=$this->path;
3042
		}
3043
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3044
		return $config->section;
3045
	}
3046
3047
	public function parentsection($path) {
3048
	global $ARConfig;
@@ 3047-3052 (lines=6) @@
3044
		return $config->section;
3045
	}
3046
3047
	public function parentsection($path) {
3048
	global $ARConfig;
3049
		$path=$this->store->make_path($path, "..");
3050
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3051
		return $config->section;
3052
	}
3053
3054
	public function currentproject($path="") {
3055
	global $ARConfig;
@@ 3054-3061 (lines=8) @@
3051
		return $config->section;
3052
	}
3053
3054
	public function currentproject($path="") {
3055
	global $ARConfig;
3056
		if (!$path) {
3057
			$path=$this->path;
3058
		}
3059
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3060
		return $config->project;
3061
	}
3062
3063
	public function parentproject($path) {
3064
	global $ARConfig;