Code Duplication    Length = 6-8 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

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