teraßyte Posted March 20, 2022 Posted March 20, 2022 (edited) Noticed it completely by chance while I was looking at the email templates for something else. Run a quick search in the folder \applications\core\dev\email for this string: $email->language->addToStack( 'guest_name_shown', NULL, array( It returns 10 results. While NULL as the second parameter for the $vle variable still works just fine the value is supposed to be FALSE (boolean). Most likely a copy/paste error when support for the guest_name_shown language string was added in the email templates since it's only those addToStack() calls that use NULL. 😋 Edited March 20, 2022 by teraßyte SeNioR- 1
teraßyte Posted March 20, 2022 Author Posted March 20, 2022 (edited) Guess I spoke too soon, a few more searches on all suite files with the 3 strings below return more wrong addToStack() calls: 79 results , NULL, array( 'sprintf' 17 results , NULL, [ 'sprintf' 8 results , NULL, array( 'htmlsprintf' Using a regex search for NULL on the same line after addToStack might return even more results. Haven't tried that though, just a thought. Edited March 20, 2022 by teraßyte SeNioR- 1
Colonel_mortis Posted March 20, 2022 Posted March 20, 2022 (edited) There are a couple more /src/applications/core/modules/front/system/widgets.php:249:addToStack( 'widget_adv__custom__desc', NULL, array( 'sprintf' => array( \IPS\Request::i()->block ) ) ) /src/applications/blog/sources/Blog/Blog.php:1265:addToStack( static::$titleLangPrefix . $this->_id . static::$descriptionLangSuffix , NULL, array( 'removeLazyLoad' => TRUE ) ) /src/applications/core/modules/admin/promotion/promote.php:467:addToStack( 'promote_facebook_page_prefix', NULL, array( 'sprintf' => array( $data[0] ) ) ) /src/applications/core/modules/admin/promotion/promote.php:473:addToStack( 'promote_facebook_group_prefix', NULL, array( 'sprintf' => array( $data[0] ) ) ) /src/applications/core/modules/admin/promotion/seo.php:159:addToStack( 'use_robotstxt_warning_off', NULL, ['sprintf' => [$rootUrl]] ) /src/applications/core/modules/admin/promotion/seo.php:163:addToStack( 'use_robotstxt_warning_download', NULL, ['sprintf' => [$rootUrl]] ) /src/applications/core/modules/admin/promotion/seo.php:170:addToStack( 'use_robotstxt_warning_existing_off', NULL, ['sprintf' => [ rtrim( \IPS\Http\Url::baseUrl(), '/' ) ] ] ) /src/applications/core/modules/admin/promotion/seo.php:174:addToStack( 'use_robotstxt_warning_existing_download', NULL, ['sprintf' => [ rtrim( \IPS\Http\Url::baseUrl(), '/' ) ] ] ) /src/applications/core/modules/front/system/register.php:1286:addToStack( 'set_password_title', NULL, array( 'sprintf' => array( $member->name ) ) ) /src/applications/core/modules/front/clubs/view.php:1635:addToStack( "add_page_to_club", NULL, array( "sprintf" => array( $this->club->name ) ) ) /src/applications/core/extensions/core/Notifications/Achievements.php:159:addToStack( 'notification__new_badge_content', NULL, [ 'sprintf' => [ $badge->_title ] ] ) /src/applications/core/extensions/core/Notifications/Achievements.php:160:addToStack( 'notification__new_badge', NULL, [ 'sprintf' => [ $badge->_title ] ] ) /src/applications/core/extensions/core/Notifications/Achievements.php:192:addToStack( 'notification__new_badge', NULL, [ 'sprintf' => [ $badge->_title ] ] ) /src/applications/core/modules/admin/overview/files.php:865:addToStack( 'file_config_log', NULL, array( 'sprintf' => array( $method['method'] ) ) ) /src/applications/core/modules/admin/support/support.php:396:addToStack('health_vapid_key_check_fail_exception', NULL, [ 'sprintf' => $ex->getMessage() ] ) /src/applications/core/extensions/core/MemberFilter/Lastvisit.php:248:addToStack( 'member_filter_core_lastvisit_range_desc', NULL, array( 'sprintf' => array( $start->localeDate(), $end->localeDate() ) ) ) /src/applications/core/extensions/core/MemberFilter/Lastvisit.php:253:addToStack( 'member_filter_core_lastvisit_days_desc', NULL, array( 'sprintf' => array( $filters['days'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Lastvisit.php:257:addToStack( 'member_filter_core_lastvisit_days_lt_desc', NULL, array( 'sprintf' => array( $filters['days_lt'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Lastpost.php:263:addToStack( 'member_filter_core_lastpost_range_desc', NULL, array( 'sprintf' => array( $start->localeDate(), $end->localeDate() ) ) ) /src/applications/core/extensions/core/MemberFilter/Lastpost.php:268:addToStack( 'member_filter_core_lastpost_days_desc', NULL, array( 'sprintf' => array( $filters['days'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Lastpost.php:272:addToStack( 'member_filter_core_lastpost_days_lt_desc', NULL, array( 'sprintf' => array( $filters['days_lt'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Achievements.php:336:addToStack( 'member_filter_core_cheev_points_gt_desc', NULL, array( 'sprintf' => array( $filters['achievement_points_value'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Achievements.php:339:addToStack( 'member_filter_core_cheev_points_lt_desc', NULL, array( 'sprintf' => array( $filters['achievement_points_value'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Achievements.php:342:addToStack( 'member_filter_core_cheev_points_eq_desc', NULL, array( 'sprintf' => array( $filters['achievement_points_value'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Achievements.php:352:addToStack( 'member_filter_core_cheev_desc', NULL, [\n 'sprintf' => [\n \IPS\Member::loggedIn()->language()->addToStack( 'recognize_badges_pluralize', NULL, ['sprintf' => [$count], 'pluralize' => [$count]] )\n ]] ) /src/applications/core/extensions/core/MemberFilter/Achievements.php:364:addToStack( 'member_filter_core_cheev_desc', NULL, [\n 'sprintf' => [\n \IPS\Member::loggedIn()->language()->addToStack( 'achievement_ranks_pluralize', NULL, ['sprintf' => [$count], 'pluralize' => [$count]] )\n ]] ) /src/applications/core/extensions/core/MemberFilter/Reputation.php:156:addToStack( 'member_filter_core_reputation_gt_desc', NULL, array( 'sprintf' => array( $filters['reputation_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Reputation.php:159:addToStack( 'member_filter_core_reputation_lt_desc', NULL, array( 'sprintf' => array( $filters['reputation_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Reputation.php:162:addToStack( 'member_filter_core_reputation_eq_desc', NULL, array( 'sprintf' => array( $filters['reputation_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Joined.php:249:addToStack( 'member_filter_core_joined_range_desc', NULL, array( 'sprintf' => array( $start->localeDate(), $end->localeDate() ) ) ) /src/applications/core/extensions/core/MemberFilter/Joined.php:254:addToStack( 'member_filter_core_joined_days_desc', NULL, array( 'sprintf' => array( $filters['days'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Joined.php:258:addToStack( 'member_filter_core_joined_days_lt_desc', NULL, array( 'sprintf' => array( $filters['days_lt'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Content.php:156:addToStack( 'member_filter_core_content_gt_desc', NULL, array( 'sprintf' => array( $filters['content_count_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Content.php:159:addToStack( 'member_filter_core_content_lt_desc', NULL, array( 'sprintf' => array( $filters['content_count_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Content.php:162:addToStack( 'member_filter_core_content_eq_desc', NULL, array( 'sprintf' => array( $filters['content_count_score'] ) ) ) /src/applications/core/extensions/core/MemberFilter/Group.php:97:addToStack( 'member_filter_core_group_desc', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->formatList( $humanGroups ) ) ) ) /src/applications/core/modules/admin/applications/api.php:69:addToStack('api_blocked_file', NULL, array( 'sprintf' => array( \IPS\ROOT_PATH ) ) ) /src/applications/core/modules/front/members/profile.php:2044:addToStack('recognize_points_so_far_both', NULL, [\n 'sprintf' => [\n $this->member->name,\n\IPS\Member::loggedIn()->language()->addToStack('recognize_points_pluralize', NULL, [ 'sprintf' => [ $this->member->todaysRecognizePoints() ], 'pluralize' => [ $this->member->todaysRecognizePoints() ] ]),\n \IPS\Member::loggedIn()->language()->addToStack('recognize_badges_pluralize', NULL, [ 'sprintf' => [ $this->member->todaysRecognizeBadges() ], 'pluralize' => [ $this->member->todaysRecognizeBadges() ] ]),\n ] ] ) /src/applications/core/modules/front/members/profile.php:2053:addToStack('recognize_points_so_far_single', NULL, [\n 'sprintf' => [\n $this->member->name,\n\IPS\Member::loggedIn()->language()->addToStack('recognize_points_pluralize', NULL, [ 'sprintf' => [ $this->member->todaysRecognizePoints() ], 'pluralize' => [ $this->member->todaysRecognizePoints() ] ])\n ] ] ) /src/applications/core/modules/front/members/profile.php:2061:addToStack('recognize_points_so_far_single', NULL, [\n 'sprintf' => [\n $this->member->name,\n\IPS\Member::loggedIn()->language()->addToStack('recognize_points_pluralize', NULL, [ 'sprintf' => [ $this->member->todaysRecognizeBadges() ], 'pluralize' => [ $this->member->todaysRecognizeBadges() ] ])\n ] ] ) /src/applications/core/modules/front/members/profile.php:2075:addToStack( 'recognize_points_so_far_limit', NULL, ['sprintf' => [$this->member->name, $maxPoints]] ) /src/applications/core/modules/front/members/profile.php:2079:addToStack( 'recognize_points_so_far_limit_none', NULL, ['sprintf' => [$this->member->name]] ) /src/applications/core/modules/front/members/profile.php:2115:addToStack( 'recognize_message__desc', NULL, [ 'sprintf' => [ $content->author()->name ] ] ) /src/applications/core/modules/front/members/profile.php:2137:addToStack('recognize_author', NULL, [ 'sprintf' => [ $content->author()->name ] ] ) /src/applications/core/modules/front/discover/streams.php:637:addToStack( 'stream_narrow_by_container_label', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack( $containerClass::$nodeTitle ) ) ) ) /src/applications/core/extensions/core/MemberACPProfileBlocks/Points.php:49:addToStack('acp_profile_edit_points', NULL, [ 'sprintf' => $this->member->name ] ) /src/applications/core/modules/front/discover/popular.php:151:addToStack( 'leaderboard_history_desc', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack( 'leaderboard_history_likes') ) ) ) /src/applications/core/modules/front/discover/popular.php:156:addToStack( 'leaderboard_history_desc', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack( 'leaderboard_history_rep') ) ) ) /src/applications/core/modules/front/discover/popular.php:330:addToStack( 'leaderboard_in_app', NULL, array( 'sprintf' => array( $areas[ \IPS\Request::i()->in ][ 1 ] ) ) ) /src/applications/core/modules/front/discover/popular.php:481:addToStack( ( $date->localeDate() == $endDate->localeDate() ) ? $popularResultsSingle : $popularResultsMany, NULL, array( 'sprintf' => array( $date->localeDate(), $descApp ) ) ) /src/applications/core/modules/admin/members/members.php:1376:addToStack( 'force_password_reset_member', NULL, array( 'sprintf' => array( $member->acpUrl()->csrf()->setQueryString( 'do', 'forcePassReset' ), \IPS\Member::loggedIn()->language()->addToStack( 'force_password_reset_member_confirmmsg' ) ) ) ) /src/applications/core/modules/admin/members/members.php:1503:addToStack( 'force_password_reset_member_external', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->formatList( $externals ) ) ) ) /src/applications/core/modules/admin/members/members.php:4604:addToStack( 'acp_badge_from_recognize', NULL, [ 'sprintf' => [ $recognize->content()->url(), $recognize->content()->indefiniteArticle() ] ] ) /src/applications/core/sources/Promote/Promote.php:398:addToStack( 'num_replies', NULL, array( 'pluralize' => array( $count ) ) ) /src/applications/core/sources/Promote/Promote.php:405:addToStack( 'num_reviews', NULL, array( 'pluralize' => array( $count ) ) ) /src/applications/core/sources/Promote/Promote.php:421:addToStack( $object->_countLanguageString, NULL, array( 'pluralize' => array( $count ) ) ) /src/applications/core/sources/Promote/Promote.php:459:addToStack( 'promote_metadescription_container', NULL, array(\n 'htmlsprintf' => array( $author->link(), $this->objectDatePosted->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle(), $container->url(), $container->_title ),\n ) ) /src/applications/core/sources/Promote/Promote.php:466:addToStack( 'promote_metadescription_container_nolink', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $container->getTitleForLanguage( $plaintextLanguage ), $author->name, $this->objectDatePosted->relative( \IPS\DateTime::RELATIVE_FORMAT_NORMAL, $plaintextLanguage ) ),\n ) ) /src/applications/core/sources/Promote/Promote.php:475:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'htmlsprintf' => array( $author->link(), $this->objectDatePosted->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle() )\n ) ) /src/applications/core/sources/Promote/Promote.php:482:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $author->name, $this->objectDatePosted->relative( \IPS\DateTime::RELATIVE_FORMAT_NORMAL, $plaintextLanguage ) )\n ) ) /src/applications/core/sources/Promote/Promote.php:492:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'htmlsprintf' => array( $author->link(), $this->objectDatePosted->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle() )\n ) ) /src/applications/core/sources/Promote/Promote.php:499:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $author->name, $this->objectDatePosted->relative( \IPS\DateTime::RELATIVE_FORMAT_NORMAL, $plaintextLanguage ) )\n ) ) /src/applications/core/sources/Promote/Promote.php:508:addToStack( 'promote_metadescription_node', NULL, array(\n 'htmlsprintf' => array( $author->link() ),\n 'sprintf' => array( $object->url(), $object->_title )\n ) ) /src/applications/core/sources/Promote/Promote.php:515:addToStack( 'promote_metadescription_node_nolink', NULL, array(\n 'sprintf' => array( $object->getTitleForLanguage( $plaintextLanguage ), $author->name )\n ) ) /src/applications/core/sources/Promote/Promote.php:982:addToStack( 'promote_thing_in_thing', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack( $object::$title ), $object->item()->mapped('title') ) ) ) /src/applications/cms/widgets/Database.php:70:addToStack( 'cms_db_in_use_by_page', NULL, array( 'sprintf' => array( $db->_title, $page->full_path ) ) ) /src/applications/core/sources/Warnings/Warning.php:348:addToStack('warn_cheeve_point_reduction__desc', NULL, [ 'sprintf' => [ $member->name, $member->achievements_points, $member->name ] ] ) /src/applications/core/sources/Profanity/Profanity.php:99:addToStack( 'profanity_filter_action_moderate_min_posts', NULL, array( 'pluralize' => array( $row['min_posts'] ) ) ) /src/applications/cms/modules/front/database/ajax.php:64:addToStack( 'cms_autocomplete_category', NULL, array( 'sprintf' => array( $record->container()->_title ) ) ) /src/applications/core/sources/Reports/Rules.php:345:addToStack( 'automoderation_points_needed_badge', NULL, array( 'pluralize' => array( $this->points_needed ) ) ) /src/applications/cms/modules/front/database/category.php:105:addToStack( 'cms_record_i_started_sprintf', NULL, array( 'sprintf' => $database->recordWord() ) ) /src/applications/cms/modules/front/database/category.php:123:addToStack( 'cms_record_i_started_sprintf', NULL, array( 'sprintf' => $database->recordWord() ) ) /src/applications/cms/modules/admin/pages/blocks.php:176:addToStack( 'cms_db_feed_block_with_name', NULL, array( 'sprintf' => array( $db->_title ) ) ) /src/applications/cms/modules/admin/pages/blocks.php:181:addToStack( 'cms_db_feed_block_with_name_disabled', NULL, array( 'sprintf' => array( $db->_title ) ) ) /src/applications/cms/modules/admin/pages/pages.php:310:addToStack( 'page_database_display', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack('content_db_' . static::$pageToDatabaseMap[ $page->id ] ) ) ) ) /src/applications/cms/sources/Pages/Page.php:1557:addToStack('content_editing_page', NULL, array( 'sprintf' => array( $this->_title ) ) ) /src/applications/core/modules/admin/customization/themes.php:1936:addToStack('theme_export_designer_mode_build_message', NULL, array( 'sprintf' => array( $url ) ) ) /src/applications/cms/modules/admin/pages/templates.php:333:addToStack('cms_theme_designer_mode_warning', NULL, array( 'sprintf' => array( $link ) ) ) /src/applications/cms/modules/admin/pages/templates.php:1000:addToStack( 'cms_database_template_used_in', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->formatList( $names ) ) ) ) /src/applications/cms/sources/Blocks/Block.php:721:addToStack('content_block_block_editing', NULL, array( 'sprintf' => array( $this->_title ) ) ) /src/applications/cms/modules/admin/pages/media.php:122:addToStack('cms_media_designer_mode_warning', NULL, array( 'sprintf' => array( $link ) ) ) /src/applications/core/sources/Rss/Import.php:275:addToStack( 'rss_import_auto_follow_lang', NULL, array( 'sprintf' => array( $class::_definiteArticle() ) ) ) /src/applications/cms/modules/admin/databases/databases.php:1557:addToStack('cms_editing_database', NULL, array( 'sprintf' => array( $current->_title ) ) ) /src/applications/cms/modules/admin/databases/databases.php:1602:addToStack( 'database_use_categories_impossible', NULL, array( 'sprintf' => array( $current->numberOfCategories() ) ) ) /src/applications/cms/modules/admin/databases/databases.php:1884:addToStack( 'database_forum_record__rebuild', NULL, array( 'sprintf' => array( $rebuildUrl ) ) ) /src/applications/cms/modules/admin/databases/databases.php:1885:addToStack( 'database_forum_comments__rebuild', NULL, array( 'sprintf' => array( $rebuildUrlCounts ) ) ) /src/applications/cms/extensions/core/Queue/MoveSingleRecord.php:183:addToStack( 'moving_database_comments_single', NULL, array( 'sprintf' => array( $record->url(), $record->mapped('title') ) ) ) /src/applications/cms/extensions/core/Queue/MoveComments.php:138:addToStack( 'moving_database_comments', NULL, array( 'sprintf' => array( $database->_title ) ) ) /src/applications/cms/sources/Fields/Fields.php:1483:addToStack('field_daterange_start_end', NULL, array( 'sprintf' => array( $start, $end ) ) ) /src/applications/cms/sources/Fields/Fields.php:1487:addToStack('field_daterange_start', NULL, array( 'sprintf' => array( $start ) ) ) /src/applications/cms/sources/Fields/Fields.php:1491:addToStack('field_daterange_end', NULL, array( 'sprintf' => array( $end ) ) ) /src/applications/cms/sources/Fields/Fields.php:1721:addToStack( 'cms_field_no_type_warning', NULL, array( 'sprintf' => array( $this->type ) ) ) /src/applications/cms/sources/Fields/Fields.php:1854:addToStack( 'cms_db_relational_with_name_disabled', NULL, array( 'sprintf' => array( $db->_title ) ) ) /src/applications/gallery/sources/Album/Album.php:1467:addToStack("gallery_album_{$this->id}_desc", NULL, array( 'removeLazyLoad' => true ) ) /src/applications/cms/sources/Categories/Categories.php:1127:addToStack( static::$titleLangPrefix . $indexData['index_container_id'], NULL, $escape ? array( 'escape' => $escape ) : array() ) /src/applications/cms/sources/Categories/Categories.php:1201:addToStack( 'content_db_' . $this->database_id, NULL, $options ) /src/applications/calendar/sources/Venue/Venue.php:259:addToStack('calendar_venue_' . $this->id . '_desc', NULL, array( 'removeLazyLoad' => true ) ) /src/applications/nexus/modules/admin/reports/markets.php:57:addToStack( 'nexus_report_income', NULL, array( 'sprintf' => array( $currency ) ) ) /src/applications/nexus/modules/admin/reports/income.php:66:addToStack( 'nexus_report_income_by_member', NULL, array( 'sprintf' => array( $currency ) ) ) /src/applications/nexus/modules/admin/reports/income.php:72:addToStack( 'nexus_report_income_by_method', NULL, array( 'sprintf' => array( $currency ) ) ) /src/applications/nexus/extensions/core/MemberHistory/Nexus.php:717:addToStack( 'nexus_history_cancelrenewals_with_name', NULL, array( 'sprintf' => array( \IPS\nexus\Subscription\Package::load( $val['id'] )->_title, $byCustomer ) ) ) /src/applications/nexus/extensions/core/MemberHistory/Nexus.php:721:addToStack( 'nexus_history_cancelrenewals', NULL, array( 'sprintf' => array( $byCustomer ) ) ) /src/applications/nexus/extensions/core/MemberHistory/Nexus.php:732:addToStack( 'nexus_history_subscription_changed', NULL, array( 'sprintf' => array( ( isset( $val['system'] ) and $val['system'] ) ? '' : $byStaff ) ) ) /src/applications/nexus/sources/Support/Request.php:1029:addToStack( 'note_added_sent_to', NULL, array( 'sprintf' => $newDepartment->_title ) ) /src/applications/nexus/sources/Purchase/Purchase.php:146:addToStack( 'plus_tax_rate', NULL, array( 'sprintf' => array( $this->renewals->tax->_title ) ) ) /src/applications/nexus/sources/Subscription/Subscription.php:132:addToStack( 'nexus_subs_subscribed_with_expire' . ( ( $this->purchase and $this->purchase->renewals ) ? '' : '_no_renewal' ), NULL, array( 'sprintf' => array( $this->_expire->dayAndMonth() . ' ' . $this->_expire->format('Y') ) ) ) /src/applications/downloads/sources/Category/Category.php:355:addToStack( 'downloadcategory_topic_rebuild', NULL, array( 'sprintf' => array( $rebuildUrl ) ) ) /src/system/Content/Content.php:1997:addToStack( 'promote_metadescription_container', NULL, array(\n 'htmlsprintf' => array( $author->link(), \IPS\DateTime::ts( $this->mapped('date') )->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle(), $container->url(), $container->_title ),\n ) ) /src/system/Content/Content.php:2004:addToStack( 'promote_metadescription_container_nolink', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $container->getTitleForLanguage( $plaintextLanguage ), $author->name, \IPS\DateTime::ts( $this->mapped('date') ) ),\n ) ) /src/system/Content/Content.php:2013:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'htmlsprintf' => array( $author->link(), \IPS\DateTime::ts( $this->mapped('date') )->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle() )\n ) ) /src/system/Content/Content.php:2020:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $author->name, \IPS\DateTime::ts( $this->mapped('date') ) )\n ) ) /src/system/Content/Content.php:2030:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'htmlsprintf' => array( $author->link(), \IPS\DateTime::ts( $this->mapped('date') )->html( FALSE ) ),\n 'sprintf' => array( $object->indefiniteArticle() )\n ) ) /src/system/Content/Content.php:2037:addToStack( 'promote_metadescription_nocontainer', NULL, array(\n 'sprintf' => array( $object->indefiniteArticle( $plaintextLanguage ), $author->name, \IPS\DateTime::ts( $this->mapped('date') ) )\n ) ) /src/system/Member/Member.php:523:addToStack( 'guest_name_shown', NULL, array( 'sprintf' => array( $this->_data['name'] ) ) ) /src/system/Member/Member.php:5174:addToStack('leaderboard_tab_x', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack("{$commentClass::$title}_pl_lc") ) ) ) /src/system/Member/Member.php:5178:addToStack('leaderboard_tab_x', NULL, array( 'sprintf' => array( \IPS\Member::loggedIn()->language()->addToStack("{$item::$title}_pl_lc") ) ) ) /src/system/Node/Model.php:594:addToStack( static::$titleLangPrefix . $indexData['index_container_id'], NULL, $escape ? array( 'escape' => TRUE ) : array() ) /src/system/Node/Model.php:692:addToStack( static::$titleLangPrefix . $this->_id, NULL, array( 'escape' => TRUE ) ) /src/system/Node/Model.php:710:addToStack( static::$titleLangPrefix . $this->_id, NULL, $options ) /src/system/Content/Reactable.php:431:addToStack( '_defart_from_date', NULL, array( 'htmlsprintf' => array( $item->url(), $item->mapped('title'), \IPS\DateTime::ts( $date )->html() ) ) ) /src/system/Content/Promote/Facebook.php:168:addToStack( 'promote_facebook_page_prefix', NULL, array( 'sprintf' => array( $data['name'] ) ) ) /src/system/Content/Promote/Facebook.php:177:addToStack( 'promote_facebook_group_prefix', NULL, array( 'sprintf' => array( $data['name'] ) ) ) /src/system/Content/Recognizable.php:170:addToStack('recognize_blurb_main', NULL, [ 'htmlsprintf' => [ $this::$title, $this->recognized->_given_by->link() ] ] ) /src/system/Content/Recognizable.php:175:addToStack( 'recognize_blurb_awarded_points_and_badge', NULL, ['htmlsprintf' => [$this->recognized->badge()->_title, $this->recognized->points]] ) /src/system/Content/Recognizable.php:179:addToStack( 'recognize_blurb_awarded_points_and_badge_third', NULL, ['htmlsprintf' => [$this->author()->name, $this->recognized->badge()->_title, $this->recognized->points]] ) /src/system/Content/Recognizable.php:186:addToStack('recognize_blurb_awarded_points', NULL, [ 'sprintf' => [ $this->recognized->points ] ] ) /src/system/Content/Recognizable.php:190:addToStack('recognize_blurb_awarded_points_third', NULL, [ 'sprintf' => [ $this->author()->name, $this->recognized->points ] ] ) /src/system/Content/Recognizable.php:197:addToStack('recognize_blurb_awarded_badge', NULL, [ 'htmlsprintf' => [ $this->recognized->badge()->_title ] ] ) /src/system/Content/Recognizable.php:201:addToStack('recognize_blurb_awarded_badge_third', NULL, [ 'htmlsprintf' => [ $this->author()->name, $this->recognized->badge()->_title ] ] ) Generated with comby 'addToStack(:[1], NULL, :[2])' '' .php -match-only -d '/src' You can also use comby to automatically fix them! comby 'addToStack(:[1], NULL, :[2])' 'addToStack(:[1], false, :[2])' .php -d $PATH_TO_CODE Edited March 20, 2022 by Colonel_mortis how to automatically fix
Solution Stuart Silvester Posted May 19, 2022 Solution Posted May 19, 2022 Thank you for your report, this has been corrected for an upcoming release. @Colonel_mortis thanks for letting me know about Comby, looks like a much nicer solution than writing regex to search and replace. SeNioR- 1
Recommended Posts