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

add no_NO (Norwegian) thanks to atlew
prepare plugin for piwigo 2.2 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pwgCumulus/include/pwgCumulusContent.class.php

    r6433 r9038  
    33// | pwgCumulus  - a plugin for Piwigo                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    3232
    3333    $GLOBALS['template']->set_filenames(array('tags'=> PWG_CUMULUS_PLUGIN_TEMPLATE . '/tags.tpl'));
    34     $GLOBALS['template']->func_known_script(array('id' => 'swfobject',
    35                                                   'src' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
    36                                                   ),
    37                                             $GLOBALS['template']->smarty
    38                                             );
     34   
     35    if (version_compare(PHPWG_VERSION, '2.2', '>=') || (PHPWG_VERSION=='Colibri')) {
     36      $GLOBALS['template']->func_combine_script(array('id' => 'swfobject',
     37                                                      'path' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
     38                                                      ),
     39                                                $GLOBALS['template']->smarty
     40                                                );
     41    } else {
     42      $GLOBALS['template']->func_known_script(array('id' => 'swfobject',
     43                                                    'src' => PWG_CUMULUS_PLUGIN_JS. '/swfobject.js'
     44                                                    ),
     45                                              $GLOBALS['template']->smarty
     46                                              );
     47    }
    3948   
    4049    $GLOBALS['template']->assign('PWG_CUMULUS_SWF', PWG_CUMULUS_PLUGIN_SWF);
Note: See TracChangeset for help on using the changeset viewer.