Changeset 20449


Ignore:
Timestamp:
Jan 29, 2013, 6:35:23 PM (11 years ago)
Author:
mistic100
Message:

feature:2826

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/languages.class.php

    r19703 r20449  
    218218  function get_server_languages($new=false)
    219219  {
    220     global $user;
     220    global $user, $conf;
    221221
    222222    $get_data = array(
    223       'category_id' => 8,
     223      'category_id' => $conf['pem_languages_category'],
    224224      'format' => 'php',
    225225    );
  • trunk/admin/include/plugins.class.php

    r19703 r20449  
    293293  function get_server_plugins($new=false)
    294294  {
    295     global $user;
     295    global $user, $conf;
    296296
    297297    $versions_to_check = $this->get_versions_to_check();
     
    314314    $url = PEM_URL . '/api/get_revision_list.php';
    315315    $get_data = array(
    316       'category_id' => 12,
     316      'category_id' => $conf['pem_plugins_category'],
    317317      'format' => 'php',
    318318      'last_revision_only' => 'true',
     
    364364      return false;
    365365    }
     366   
     367    global $conf;
    366368
    367369    // Plugins to check
     
    378380    $url = PEM_URL . '/api/get_revision_list.php';
    379381    $get_data = array(
    380       'category_id' => 12,
     382      'category_id' => $conf['pem_plugins_category'],
    381383      'format' => 'php',
    382384      'version' => implode(',', $versions_to_check),
  • trunk/admin/include/themes.class.php

    r19703 r20449  
    455455  function get_server_themes($new=false)
    456456  {
    457     global $user;
     457    global $user, $conf;
    458458
    459459    $get_data = array(
    460       'category_id' => 10,
     460      'category_id' => $conf['pem_themes_category'],
    461461      'format' => 'php',
    462462    );
  • trunk/include/config_default.inc.php

    r20177 r20449  
    756756$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/';
    757757
    758 // PEM url
     758// PEM url (default is http://piwigo.org/ext)
    759759$conf['alternative_pem_url'] = '';
     760
     761// categories ID on PEM
     762$conf['pem_plugins_category'] = 12;
     763$conf['pem_themes_category'] = 10;
     764$conf['pem_languages_category'] = 8;
    760765
    761766// based on the EXIF "orientation" tag, should we rotate photos added in the
Note: See TracChangeset for help on using the changeset viewer.