Index: branches/5.2.x/core/ckeditor/ckfinder/core/connector/php/php5/Core/ResourceTypeConfig.php =================================================================== diff -u -N -r15316 -r16404 --- branches/5.2.x/core/ckeditor/ckfinder/core/connector/php/php5/Core/ResourceTypeConfig.php (.../ResourceTypeConfig.php) (revision 15316) +++ branches/5.2.x/core/ckeditor/ckfinder/core/connector/php/php5/Core/ResourceTypeConfig.php (.../ResourceTypeConfig.php) (revision 16404) @@ -2,8 +2,8 @@ /* * CKFinder * ======== - * http://ckfinder.com - * Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved. + * http://cksource.com/ckfinder + * Copyright (C) 2007-2013, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, @@ -235,8 +235,6 @@ $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); } - $toCheck = array(); - if ($this->_config->getCheckDoubleExtension()) { $pieces = explode('.', $fileName); @@ -356,4 +354,14 @@ return true; } + + /** + * Generate hash for current resource type + * + * @access public + * @return string 16 digit hash + */ + public function getHash(){ + return substr(md5($this->getDirectory()), 0, 16); + } }