Ignore:
Timestamp:
Feb 1, 2011, 2:11:29 PM (13 years ago)
Author:
nikrou
Message:

Fix translation issue
Fix bugs with special configuration params :

Prepare piwigo release 2.2 (func_combine_script instead of func_known_script)

Location:
extensions/user_tags/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_admin_action.inc.php

    r6846 r9037  
    33// | User Tags  - a plugin for Piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    3636  if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
    3737    header("Content-Type: application/json");
    38     $message['info'] = l10n('Tags updated');
     38    $message['info'] = 'Tags updated';
    3939
    4040    echo json_encode($message);
  • extensions/user_tags/include/t4u_config.class.php

    r6846 r9037  
    33// | User Tags  - a plugin for Piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    100100 
    101101  public function getActionUrl($base_url, $action) {
     102    global $conf;
     103
    102104    $url = $base_url;
    103     $url .= '&action='.$action;           
     105    if ($conf['question_mark_in_urls']) {
     106      $url .= '&';
     107    } else {
     108      $url .= '?';     
     109    }
     110    $url .= 'action='.$action;           
    104111
    105112    return $url;
  • extensions/user_tags/include/t4u_content.class.php

    r6896 r9037  
    33// | User Tags  - a plugin for Piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    3333    }
    3434
    35     $template->func_known_script(array('id' => 'jquery',
    36                                        'src' => get_root_url().'themes/default/js/jquery.packed.js'
    37                                        ),
    38                                  $template->smarty
    39                                  );
     35    load_language('plugin.lang', T4U_PLUGIN_LANG);
     36
     37    if (version_compare(PHPWG_VERSION, '2.2', '>=') || (PHPWG_VERSION=='Colibri')) {
     38      $template->func_combine_script(array('id' => 'jquery',
     39                                           'path' => 'themes/default/js/jquery.min.js'
     40                                           ),
     41                                     $template->smarty
     42                                     );
     43    } else {
     44      $template->func_known_script(array('id' => 'jquery',
     45                                         'src' => get_root_url().'themes/default/js/jquery.packed.js'
     46                                         ),
     47                                   $template->smarty
     48                                   );
     49    }
    4050
    4151    $template->assign('T4U_JS', T4U_JS);
Note: See TracChangeset for help on using the changeset viewer.