Skip to content

Commit

Permalink
Добавил @Package и т.д. Добавил / к languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Airat Halitov authored Jan 9, 2018
1 parent a4c0469 commit df87289
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ad-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
* Author URI: https://airat.biz
* Version: 1.2.0
* Text Domain: ad-generator
* Domain Path: languages
* Domain Path: /languages/
* GitHub Plugin URI: airathalitov/ad-generator
*/
/**
* @package airathalitov/ad-generator
* @category Core
* @author Airat Halitov
* @license GPLv3
* @link https://github.com/AiratHalitov/ad-generator
* @version 1.2.0
*/

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
Expand All @@ -21,7 +29,7 @@ class ad_generator_shortcode {
static $mydomain = 'ad-generator';

static function init () {
load_plugin_textdomain( self::$mydomain, false, basename( dirname( __FILE__ ) ) . '/languages' );
load_plugin_textdomain( self::$mydomain, false, basename( dirname( __FILE__ ) ) . '/languages/' );

add_shortcode('ad_generator', array(__CLASS__, 'ad_generator_func'));

Expand Down

0 comments on commit df87289

Please sign in to comment.