@@ -143,7 +143,7 @@ function set_default_user()
143143 // Get Slim current session
144144 $ feather = \Slim \Slim::getInstance ();
145145
146- $ remote_addr = $ feather -> request -> getIp ();
146+ $ remote_addr = Utils:: getIp ();
147147
148148 // Fetch guest user
149149 $ select_set_default_user = array ('u.* ' , 'g.* ' , 'o.logged ' , 'o.last_post ' , 'o.last_search ' );
@@ -437,7 +437,7 @@ function output_html($feed)
437437
438438 foreach ($ feed ['items ' ] as $ item ) {
439439 if (utf8_strlen ($ item ['title ' ]) > FORUM_EXTERN_MAX_SUBJECT_LENGTH ) {
440- $ subject_truncated = Utils::escape ($ feather -> utils -> trim (utf8_substr ($ item ['title ' ], 0 , (FORUM_EXTERN_MAX_SUBJECT_LENGTH - 5 )))).' … ' ;
440+ $ subject_truncated = Utils::escape (Utils:: trim (utf8_substr ($ item ['title ' ], 0 , (FORUM_EXTERN_MAX_SUBJECT_LENGTH - 5 )))).' … ' ;
441441 } else {
442442 $ subject_truncated = Utils::escape ($ item ['title ' ]);
443443 }
@@ -547,7 +547,7 @@ function output_html($feed)
547547
548548 // Were any forum IDs supplied?
549549 if (isset ($ _GET ['fid ' ]) && is_scalar ($ _GET ['fid ' ]) && $ _GET ['fid ' ] != '' ) {
550- $ fids = explode (', ' , $ feather -> utils -> trim ($ _GET ['fid ' ]));
550+ $ fids = explode (', ' , Utils:: trim ($ _GET ['fid ' ]));
551551 $ fids = array_map ('intval ' , $ fids );
552552
553553 if (!empty ($ fids )) {
@@ -576,7 +576,7 @@ function output_html($feed)
576576
577577 // Any forum IDs to exclude?
578578 if (isset ($ _GET ['nfid ' ]) && is_scalar ($ _GET ['nfid ' ]) && $ _GET ['nfid ' ] != '' ) {
579- $ nfids = explode (', ' , $ feather -> utils -> trim ($ _GET ['nfid ' ]));
579+ $ nfids = explode (', ' , Utils:: trim ($ _GET ['nfid ' ]));
580580 $ nfids = array_map ('intval ' , $ nfids );
581581
582582 if (!empty ($ nfids )) {
@@ -734,11 +734,11 @@ function output_html($feed)
734734// Show board statistics
735735elseif ($ action == 'stats ' ) {
736736
737- if (!$ feather -> cache ->isCached ('users_info ' )) {
738- $ feather -> cache ->store ('users_info ' , Cache::get_users_info ());
737+ if (!Container:: get ( ' cache ' ) ->isCached ('users_info ' )) {
738+ Container:: get ( ' cache ' ) ->store ('users_info ' , Cache::get_users_info ());
739739 }
740740
741- $ stats = $ feather -> cache ->retrieve ('users_info ' );
741+ $ stats = Container:: get ( ' cache ' ) ->retrieve ('users_info ' );
742742
743743 $ stats_query = \DB ::for_table ('forums ' )
744744 ->select_expr ('SUM(num_topics) ' , 'total_topics ' )
0 commit comments