Changeset 5845


Ignore:
Timestamp:
Apr 13, 2010, 11:44:49 PM (10 years ago)
Author:
vdigital
Message:

Change: flags are searched into language subdirectories

Location:
trunk/plugins/language_switch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/language_switch/language_switch.inc.php

    r5208 r5845  
    7171                 add_url_params( $url_starting, array('lang'=> $code) )),
    7272        'alt' => ucwords( $displayname ),
    73         'img' => get_root_url().'plugins/language_switch/icons/' . $code . '.jpg',
     73        'img' => get_root_url().'language/' . $code . '/' . $code . '.jpg',
    7474        );
    75       if ( $code !== $user['language'] and
    76           file_exists(dirname(__FILE__) . '/icons/' . $code . '.jpg') )
     75      if ( $code !== $user['language'] )
    7776        $lsw['flags'][$code] = $qlc ;
    7877      else $lsw['Active'] = $qlc;
  • trunk/plugins/language_switch/main.inc.php

    r5196 r5845  
    2424/*
    2525Plugin Name: Language Switch
    26 Version: auto
     26Version: Auto
    2727Description: Switch to another language from flags on your gallery home page.
    2828Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
Note: See TracChangeset for help on using the changeset viewer.