@@ -24,7 +24,7 @@ public function __construct()
2424 $ this ->user = Container::get ('user ' );
2525 $ this ->request = $ this ->feather ->request ;
2626 $ this ->model = new \FeatherBB \Model \Admin \Parser ();
27- load_textdomain ('featherbb ' , Container ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/lang/ ' .$ this ->user ->language .'/admin/parser.mo ' );
27+ load_textdomain ('featherbb ' , Config ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/lang/ ' .$ this ->user ->language .'/admin/parser.mo ' );
2828 }
2929
3030 public function display ()
@@ -34,15 +34,15 @@ public function display()
3434 Container::get ('hooks ' )->fire ('controller.admin.parser.display ' );
3535
3636 // Legacy
37- require Container ::get ('forum_env ' )['FEATHER_ROOT ' ] . 'featherbb/lang/ ' . $ this ->user ->language . '/admin/parser.php ' ;
37+ require Config ::get ('forum_env ' )['FEATHER_ROOT ' ] . 'featherbb/lang/ ' . $ this ->user ->language . '/admin/parser.php ' ;
3838
3939 // This is where the parser data lives and breathes.
40- $ cache_file = Container ::get ('forum_env ' )['FEATHER_ROOT ' ].'cache/cache_parser_data.php ' ;
40+ $ cache_file = Config ::get ('forum_env ' )['FEATHER_ROOT ' ].'cache/cache_parser_data.php ' ;
4141
4242 // If RESET button pushed, or no cache file, re-compile master bbcode source file.
4343 if ($ this ->request ->post ('reset ' ) || !file_exists ($ cache_file )) {
44- require_once (Container ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/Core/parser/bbcd_source.php ' );
45- require_once (Container ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/Core/parser/bbcd_compile.php ' );
44+ require_once (Config ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/Core/parser/bbcd_source.php ' );
45+ require_once (Config ::get ('forum_env ' )['FEATHER_ROOT ' ].'featherbb/Core/parser/bbcd_compile.php ' );
4646 Router::redirect (Router::pathFor ('adminParser ' ), $ lang_admin_parser ['reset_success ' ]);
4747 }
4848
@@ -65,7 +65,7 @@ public function display()
6565 if (preg_match ('/^[\w\-.]++$/ ' , $ name )) { // If we have a valid filename?
6666 if (preg_match ('%^image/% ' , $ f ['type ' ])) { // If we have an image file type?
6767 if ($ f ['size ' ] > 0 && $ f ['size ' ] <= $ this ->config ['o_avatars_size ' ]) {
68- if (move_uploaded_file ($ f ['tmp_name ' ], Container ::get ('forum_env ' )['FEATHER_ROOT ' ] .'style/img/smilies/ ' . $ name )) {
68+ if (move_uploaded_file ($ f ['tmp_name ' ], Config ::get ('forum_env ' )['FEATHER_ROOT ' ] .'style/img/smilies/ ' . $ name )) {
6969 Router::redirect (Router::pathFor ('adminParser ' ), $ lang_admin_parser ['upload success ' ]);
7070 } else { // Error #1: 'Smiley upload failed. Unable to move to smiley folder.'.
7171 throw new Error ($ lang_admin_parser ['upload_err_1 ' ], 500 );
0 commit comments