Code Duplication    Length = 6-8 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

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