@@ -109,7 +109,7 @@ protected function init($framed = false)
109
109
110
110
// load and setup the skin
111
111
$ this ->set_skin ($ this ->config ->get ('skin ' ));
112
- $ this ->set_assets_path ($ this ->config ->get ('assets_path ' ), $ this -> config -> get ( ' assets_dir ' ) );
112
+ $ this ->set_assets_path ($ this ->config ->get ('assets_path ' ));
113
113
114
114
if (!empty ($ _REQUEST ['_extwin ' ])) {
115
115
$ this ->set_env ('extwin ' , 1 );
@@ -186,10 +186,9 @@ public function set_env($name, $value, $addtojs = true)
186
186
/**
187
187
* Parse and set assets path
188
188
*
189
- * @param string $path Assets path URL (relative or absolute)
190
- * @param string $fs_dir Assets path in filesystem
189
+ * @param string $path Assets path URL (relative or absolute)
191
190
*/
192
- public function set_assets_path ($ path, $ fs_dir = null )
191
+ public function set_assets_path ($ path )
193
192
{
194
193
// set absolute path for assets if /index.php/foo/bar url is used
195
194
if (empty ($ path ) && !empty ($ _SERVER ['PATH_INFO ' ])) {
@@ -225,15 +224,6 @@ public function set_assets_path($path, $fs_dir = null)
225
224
}
226
225
}
227
226
228
- // set filesystem path for assets
229
- if ($ fs_dir ) {
230
- if ($ fs_dir [0 ] != '/ ' ) {
231
- $ fs_dir = realpath (RCUBE_INSTALL_PATH . $ fs_dir );
232
- }
233
- // ensure the path ends with a slash
234
- $ this ->assets_dir = rtrim ($ fs_dir , '/ ' ) . '/ ' ;
235
- }
236
-
237
227
$ this ->assets_path = $ path ;
238
228
$ this ->set_env ('assets_path ' , $ path );
239
229
}
0 commit comments