Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Problem z biblioteką
Error107
post 9.09.2019, 11:47:31
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 9.09.2019

Ostrzeżenie: (0%)
-----


OPIS PROBLEMU WYŚWIETLA SIĘ U GÓRY STRONY:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SMTheme has a deprecated constructor in /profiles/e/er/err/error107pl/lv-rp.pl/wp-content/themes/gameplay/inc/library.php on line 2

Kod
<?php
    class SMTheme {
        var $options;
        var $lang;
        var $status;
        var $pagetitle;
        var $layout;
        var $sidebars_type;
        
        function SMTheme() {

            if ( !is_admin() ) {
                function smt_register_scripts() {
                    global $SMTheme;
                    $apikey = $SMTheme->get( 'integration','gglapikey' )?'?key='.$SMTheme->get( 'integration','gglapikey' ):'';
                    
                    
                    wp_enqueue_style( 'index', get_template_directory_uri().'/css/index.css' );
                    wp_enqueue_style( 'style', get_stylesheet_uri() );
                    wp_enqueue_script( 'jquery' );
                    wp_register_script( 'googlemaps', 'https://maps.google.com/maps/api/js'.$apikey, array( 'jquery' ), '3' );
                    wp_enqueue_script( 'googlemaps' );
                }
                add_action('init', 'smt_register_scripts');
            }
            
            if ( ! isset( $content_width ) ) $content_width = 1000;
            include TEMPLATEPATH."/inc/settings.php";
            $reset='';
            if ( current_user_can('administrator') ) {
Go to the top of the page
+Quote Post
viking
post 9.09.2019, 11:49:36
Post #2





Grupa: Zarejestrowani
Postów: 6 365
Pomógł: 1114
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Zamiast function SMTheme() -> public function __construct()


--------------------
Go to the top of the page
+Quote Post
Error107
post 9.09.2019, 11:55:26
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 9.09.2019

Ostrzeżenie: (0%)
-----


Dzięki wielkie!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.04.2024 - 10:39