Changeset 244

User picture

Author: partikule

(2011/03/05 02:00) About 1 year ago

- FancyUpload path correction

Affected files

Updated branches/0.9.6/modules/Fancyupload/controllers/admin/fancyupload.php Download diff

243244
23
		/*
23
		/*
24
		 * Get the media folders
24
		 * Get the media folders
25
		 */
25
		 */
26
		$path = config_item('base_path').'/'.Settings::get('files_path');
26
		$path = FCPATH .Settings::get('files_path');
27
27
28
		$iter = new RecursiveIteratorIterator(
28
		$iter = new RecursiveIteratorIterator(
29
			new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME), RecursiveIteratorIterator::SELF_FIRST);
29
			new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME), RecursiveIteratorIterator::SELF_FIRST);
...
...
103
		$conf .= "\n\n";
103
		$conf .= "\n\n";
104
		$conf .= '/* End of file config.php */'."\n";
104
		$conf .= '/* End of file config.php */'."\n";
105
		$conf .= '/* Auto generated by FancyUpload Administration on : '.date('Y.m.d H:i:s').' */'."\n";
105
		$conf .= '/* Auto generated by FancyUpload Administration on : '.date('Y.m.d H:i:s').' */'."\n";
106
		$conf .= '/* Location: ' .$this->config->item('module_path').'Fancyupload/config/config.php */'."\n";
106
		$conf .= '/* Location: ' .MODPATH.'Fancyupload/config/config.php */'."\n";
107
107
108
		// Writing problem
108
		// Writing problem
109
		if ( ! write_file($this->config->item('module_path').'Fancyupload/config/config.php', $conf))
109
		if ( ! write_file(MODPATH.'Fancyupload/config/config.php', $conf))
110
		{
110
		{
111
			$this->error(lang('ionize_message_error_writing_file'));				
111
			$this->error(lang('ionize_message_error_writing_file'));				
112
		}
112
		}