Code Duplication    Length = 6-8 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

@@ 3104-3111 (lines=8) @@
3101
		return $config->site;
3102
	}
3103
3104
	public function currentsection($path="") {
3105
	global $ARConfig;
3106
		if (!$path) {
3107
			$path=$this->path;
3108
		}
3109
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3110
		return $config->section;
3111
	}
3112
3113
	public function parentsection($path) {
3114
	global $ARConfig;
@@ 3113-3118 (lines=6) @@
3110
		return $config->section;
3111
	}
3112
3113
	public function parentsection($path) {
3114
	global $ARConfig;
3115
		$path=$this->store->make_path($path, "..");
3116
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3117
		return $config->section;
3118
	}
3119
3120
	public function currentproject($path="") {
3121
	global $ARConfig;
@@ 3120-3127 (lines=8) @@
3117
		return $config->section;
3118
	}
3119
3120
	public function currentproject($path="") {
3121
	global $ARConfig;
3122
		if (!$path) {
3123
			$path=$this->path;
3124
		}
3125
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3126
		return $config->project;
3127
	}
3128
3129
	public function parentproject($path) {
3130
	global $ARConfig;