File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ private function proceedSingleUpload($file)
6161 ->save ($ new_file_path , 90 );
6262
6363 $ this ->makeThumb ($ new_filename );
64- } else {
64+ }
65+ {
6566 chmod ($ file ->getRealPath (), 0644 ); // TODO configurable
6667 File::move ($ file ->getRealPath (), $ new_file_path );
6768 }
@@ -166,18 +167,19 @@ function getUrlParam(paramName) {
166167 if (o !== false) o.CKEDITOR.tools.callFunction(funcNum, ' $ file');
167168 </script> " ;
168169 }
169-
170+
170171 private function _pathinfo ($ path , $ options = null )
171172 {
172173 $ path = urlencode ($ path );
173174 $ parts = is_null ($ options ) ? pathinfo ($ path ) : pathinfo ($ path , $ options );
174- if (is_array ($ parts )) {
175- foreach ($ parts as $ field => $ value ) {
175+ if (is_array ($ parts )) {
176+ foreach ($ parts as $ field => $ value ) {
176177 $ parts [$ field ] = urldecode ($ value );
177178 }
178179 } else {
179180 $ parts = urldecode ($ parts );
180181 }
182+
181183 return $ parts ;
182184 }
183185}
You can’t perform that action at this time.
0 commit comments