Ignore:
Timestamp:
01/26/11 20:23:49 (10 years ago)
Author:
kent1
Message:

eviter lire_config ici ... on regarde dans la globale de meta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins_spip/spip2liquidsoap/liquidsoap_fonctions.php

    r3934 r4814  
    2828         * La config du serveur
    2929         */
    30         $config = lire_config('liquidsoap');
     30        $config = is_array(unserialize($GLOBALS['meta']['liquidsoap'])) ? unserialize($GLOBALS['meta']['liquidsoap']) : array();
    3131        $hostname = $config['serveur'] ? $config['serveur'] : '127.0.0.1';
    3232        $port = $config['port'] ? $config['port'] : '1234';
     
    9898function liquidsoap_streams(){
    9999        include_spip('classes/savonet');
    100         $config = lire_config('liquidsoap');
     100        $config = is_array(unserialize($GLOBALS['meta']['liquidsoap'])) ? unserialize($GLOBALS['meta']['liquidsoap']) : array();
    101101        $hostname = $config['serveur'] ? $config['serveur'] : '127.0.0.1';
    102102        $port = $config['port'] ? $config['port'] : '1234';
Note: See TracChangeset for help on using the changeset viewer.