Plugin Directory

Changeset 402286


Ignore:
Timestamp:
06/29/2011 12:35:44 AM (15 years ago)
Author:
e2b
Message:

fixes strict error reporting

Location:
hyphenator
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hyphenator/tags/3.3.0/plugin.php

    r402275 r402286  
    3131
    3232// load gettext files
    33 load_plugin_textdomain(hyphenator, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/languages/');
     33load_plugin_textdomain('hyphenator', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/languages/');
    3434
    3535
     
    6767    $hyphenatorHead .= "\n\t<script src=\"{$js_path}/Hyphenator.js\" type=\"text/javascript\"></script>";
    6868
    69     if ($hyphenator_languages != auto && $hyphenator_languages != '') {
     69    if ($hyphenator_languages != 'auto' && $hyphenator_languages != '') {
    7070        foreach ($hyphenator_languages as $hyphenator_languages_lang) {
    7171            $hyphenatorHead .= "\n\t<script src=\"{$js_path}/patterns/{$hyphenator_languages_lang}.js\" type=\"text/javascript\"></script>";
     
    7474
    7575    $hyphenatorHead .= "\n\t<script type=\"text/javascript\">";
     76   
     77    $hyphenatorHeadConfig = '';
    7678   
    7779    if ($hyphenator_minwordlenght != '' && $hyphenator_minwordlenght != 6) {
  • hyphenator/trunk/plugin.php

    r402275 r402286  
    3131
    3232// load gettext files
    33 load_plugin_textdomain(hyphenator, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/languages/');
     33load_plugin_textdomain('hyphenator', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/languages/');
    3434
    3535
     
    6767    $hyphenatorHead .= "\n\t<script src=\"{$js_path}/Hyphenator.js\" type=\"text/javascript\"></script>";
    6868
    69     if ($hyphenator_languages != auto && $hyphenator_languages != '') {
     69    if ($hyphenator_languages != 'auto' && $hyphenator_languages != '') {
    7070        foreach ($hyphenator_languages as $hyphenator_languages_lang) {
    7171            $hyphenatorHead .= "\n\t<script src=\"{$js_path}/patterns/{$hyphenator_languages_lang}.js\" type=\"text/javascript\"></script>";
     
    7474
    7575    $hyphenatorHead .= "\n\t<script type=\"text/javascript\">";
     76   
     77    $hyphenatorHeadConfig = '';
    7678   
    7779    if ($hyphenator_minwordlenght != '' && $hyphenator_minwordlenght != 6) {
Note: See TracChangeset for help on using the changeset viewer.