Plugin Directory

Changeset 195147


Ignore:
Timestamp:
01/19/2010 12:39:51 AM (16 years ago)
Author:
SergeyBiryukov
Message:

added checking if WPLANG is defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pure-php-localization/trunk/pure-php-localization.php

    r194685 r195147  
    22/*
    33Plugin Name: Pure PHP Localization
    4 Version: 0.6-trunk
     4Version: 0.5.1-trunk
    55Plugin URI: http://uplift.ru/projects/
    66Description: Converts gettext binary message catalogs to an array of strings. Allows to save some amount of RAM on a shared hosting server.
     
    99*/
    1010
    11 $php_l10n_locale = WPLANG;
     11$php_l10n_locale = defined('WPLANG') ? WPLANG : '';
    1212$php_l10n_upload_dir = wp_upload_dir();
    1313$php_l10n_path = "{$php_l10n_upload_dir['basedir']}/" . dirname(plugin_basename(__FILE__));
     
    1919$php_l10n_loaded_domains = array();
    2020
     21if ( empty($php_l10n_locale) )
     22    return;
     23
    2124function php_l10n_create_array() {
    2225    global $l10n, $php_l10n_path, $php_l10n_filename;
Note: See TracChangeset for help on using the changeset viewer.