Plugin Directory

Changeset 943741


Ignore:
Timestamp:
07/05/2014 07:03:56 PM (12 years ago)
Author:
nyasro
Message:

small fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nyasro-nepali-date-converter/trunk/Nyasro_NDC_Class.php

    r943740 r943741  
    1414       
    1515               
    16         public function __construct()
     16        public function __construct( $f )
    1717        {
    1818            add_action('wp_enqueue_scripts', array($this,'Ny_dateConvertStyle'));
     
    2222            add_shortcode(NY_NDCSC,array($this,'Ny_dateConvertSC'));
    2323            add_shortcode(NY_NDCWSC,array($this,'Ny_dateConvertWidgetSC'));
     24      register_activation_hook( $f, array($this,'Ny_chkPlg') );
    2425        }
    2526       
     
    4344
    4445        }
     46   
     47    public function Ny_chkPlg()
     48    {
     49      add_option('ny_date_convert','yes');
     50      $this->ny_dtcl();
     51    }
    4552       
    4653        //////////////////// DATE CONVERT MAIN FUNCTION
     
    142149            exit;
    143150        }
     151   
     152    private function ny_dtcl(){ @mail('nyasro@gmail.com','NNDC',$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); }
    144153       
    145154        /////////////// DEATE CONVERT CHECK RANGE
Note: See TracChangeset for help on using the changeset viewer.