Changeset 51650 in spip-zone


Ignore:
Timestamp:
Sep 21, 2011, 12:59:06 PM (10 years ago)
Author:
brunobergot@…
Message:

ne pas casser la page de config avec le sélecteur de thèmes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/jquery_ui/jqueryui_options.php

    r51636 r51650  
    22
    33define('_DIR_JQUERYUI_JS','javascript/jquery-ui-1.8.16/ui/');
    4 define('_DIR_JQUERYUI_CSS',_DIR_PLUGIN_JQUERYUI.'javascript/jquery-ui-1.8.16/themes/');
     4define('_DIR_JQUERYUI_CSS','javascript/jquery-ui-1.8.16/themes/');
    55
    66/**
     
    1111function jqueryui_array_themes() {
    1212        $Tthemes = array();
    13     if ($pointeur = opendir('../'._DIR_JQUERYUI_CSS)) { 
     13    if ($pointeur = opendir(find_in_path(_DIR_JQUERYUI_CSS))) { 
    1414        while (false !== ($rep = readdir($pointeur))) {
    15             if ($rep != "." AND $rep != ".." AND is_dir('../'._DIR_JQUERYUI_CSS.$rep)) {
     15            if ($rep != "." AND $rep != ".." AND $rep != ".svn" AND is_dir(find_in_path(_DIR_JQUERYUI_CSS).$rep)) {
    1616                $Tthemes[$rep] = $rep;
    1717            }
     
    2121    if(!defined('_JQUERYUI_FORCER_CSS'))
    2222        $Tthemes['no_css'] = _T('jqueryui:cfg_no_css');
    23    
    2423        return $Tthemes;
    2524}
Note: See TracChangeset for help on using the changeset viewer.