@@ -48,7 +48,7 @@ public function __construct()
4848 */
4949 public function show ()
5050 {
51- $ working_dir = DIRECTORY_SEPARATOR ;
51+ $ working_dir = ' / ' ;
5252 $ working_dir .= (Config::get ('lfm.allow_multi_user ' )) ? \Auth::user ()->user_field : Config::get ('lfm.shared_folder_name ' );
5353
5454 return view ('laravel-filemanager::index ' )
@@ -87,23 +87,23 @@ private function formatLocation($location, $type = null, $get_thumb = false)
8787 $ working_dir = Input::get ('working_dir ' );
8888
8989 // remove first slash
90- if (substr ($ working_dir , 0 , 1 ) === DIRECTORY_SEPARATOR ) {
90+ if (substr ($ working_dir , 0 , 1 ) === ' / ' ) {
9191 $ working_dir = substr ($ working_dir , 1 );
9292 }
9393
9494
9595 $ location .= $ working_dir ;
9696
9797 if ($ type === 'directory ' || $ type === 'thumb ' ) {
98- $ location .= DIRECTORY_SEPARATOR ;
98+ $ location .= ' / ' ;
9999 }
100100
101101 //if user is inside thumbs folder there is no need
102102 // to add thumbs substring to the end of $location
103103 $ in_thumb_folder = preg_match ('/ ' .Config::get ('lfm.thumb_folder_name ' ).'$/i ' ,$ working_dir );
104104
105105 if ($ type === 'thumb ' && !$ in_thumb_folder ) {
106- $ location .= Config::get ('lfm.thumb_folder_name ' ) . DIRECTORY_SEPARATOR ;
106+ $ location .= Config::get ('lfm.thumb_folder_name ' ) . ' / ' ;
107107 }
108108
109109 return $ location ;
@@ -117,7 +117,7 @@ private function formatLocation($location, $type = null, $get_thumb = false)
117117
118118 public function getPath ($ type = null , $ get_thumb = false )
119119 {
120- $ path = base_path () . DIRECTORY_SEPARATOR . $ this ->file_location ;
120+ $ path = base_path () . ' / ' . $ this ->file_location ;
121121
122122 $ path = $ this ->formatLocation ($ path , $ type );
123123
@@ -164,7 +164,7 @@ public function getFileName($file)
164164
165165 $ arr_dir = explode ('/ ' , $ lfm_file_path );
166166 $ arr_filename ['short ' ] = end ($ arr_dir );
167- $ arr_filename ['long ' ] = DIRECTORY_SEPARATOR . $ lfm_file_path ;
167+ $ arr_filename ['long ' ] = ' / ' . $ lfm_file_path ;
168168
169169 return $ arr_filename ;
170170 }
0 commit comments