HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/www/hotelania.pl/wp-content/plugins/related-posts-for-wp/classes/class-dependencies.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit if accessed directly

class RP4WP_Dependencies {

	/**
	 * Check for dependencies
	 */
	public function check() {

		// check if mbstring is loaded
		if ( ! extension_loaded( "mbstring" ) ) {
			add_action( 'admin_notices', array( $this, 'display_mbstring_error' ) );
		}

	}

	/**
	 * Display error if mbstring is not loaded
	 */
	public function display_mbstring_error() {
		?>
        <div class="notice notice-error">
            <p><strong><?php _e( "Error:", "related-posts-for-wp"); ?></strong> <?php _e( sprintf( "The %s extension needs to be installed and activated for Related Posts for WP to work!", "<strong>mbstring</strong>" ), 'related-posts-for-wp' ); ?></p>
            <p><?php _e( sprintf( "Please contact your host and ask them to install the %s PHP extension.", "<strong>mbstring</strong>" ), 'related-posts-for-wp' ); ?></p>
        </div>
		<?php
	}

}