Code Duplication    Length = 6-8 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

@@ 3113-3120 (lines=8) @@
3110
		return $config->site;
3111
	}
3112
3113
	public function currentsection($path="") {
3114
	global $ARConfig;
3115
		if (!$path) {
3116
			$path=$this->path;
3117
		}
3118
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3119
		return $config->section;
3120
	}
3121
3122
	public function parentsection($path) {
3123
	global $ARConfig;
@@ 3122-3127 (lines=6) @@
3119
		return $config->section;
3120
	}
3121
3122
	public function parentsection($path) {
3123
	global $ARConfig;
3124
		$path=$this->store->make_path($path, "..");
3125
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3126
		return $config->section;
3127
	}
3128
3129
	public function currentproject($path="") {
3130
	global $ARConfig;
@@ 3129-3136 (lines=8) @@
3126
		return $config->section;
3127
	}
3128
3129
	public function currentproject($path="") {
3130
	global $ARConfig;
3131
		if (!$path) {
3132
			$path=$this->path;
3133
		}
3134
		$config=($ARConfig->cache[$path]) ? $ARConfig->cache[$path] : $this->loadConfig($path);
3135
		return $config->project;
3136
	}
3137
3138
	public function parentproject($path) {
3139
	global $ARConfig;