mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Minor bugs correction
git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -45,7 +45,7 @@ $conf['nb_image_row'] = array(4,5,6,7,8);
|
||||
$conf['nb_row_page'] = array(2,3,4,5,6,7,10,20,1000);
|
||||
$conf['slideshow_period'] = array(2,5,10);
|
||||
$conf['last_days'] = array(1,2,3,10,30,365);
|
||||
$conf['version'] = 'BSF';
|
||||
|
||||
// $conf['file_ext'] lists all extensions (case insensitive) allowed for
|
||||
// your PhpWebGallery installation
|
||||
$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF'
|
||||
|
||||
@@ -25,8 +25,11 @@
|
||||
// | USA. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
// Default Language
|
||||
// Default settings
|
||||
define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
|
||||
define('PHPWG_VERSION', 'BSF');
|
||||
define('PHPWG_URL', 'http://www.phpwebgallery.net');
|
||||
define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net');
|
||||
|
||||
// Debug Level
|
||||
define('DEBUG', 1); // Debugging on
|
||||
|
||||
@@ -277,7 +277,7 @@ function get_languages()
|
||||
if (is_dir($path) and !is_link($path) and file_exists($path.'/iso.txt'))
|
||||
{
|
||||
list($language_name) = @file($path.'/iso.txt');
|
||||
$languages[$file] = $language_name;
|
||||
$languages[$language_name] = $file;
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
@@ -354,16 +354,6 @@ function pwg_log( $file, $category, $picture = '' )
|
||||
}
|
||||
}
|
||||
|
||||
function templatize_array( $array, $global_array_name, $handle )
|
||||
{
|
||||
global $vtp, $lang, $page, $user, $conf;
|
||||
|
||||
foreach ( $array as $value ) {
|
||||
if (isset(${$global_array_name}[$value]))
|
||||
$vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] );
|
||||
}
|
||||
}
|
||||
|
||||
// format_date returns a formatted date for display. The date given in
|
||||
// argument can be a unixdate (number of seconds since the 01.01.1970) or an
|
||||
// american format (2003-09-15). By option, you can show the time. The
|
||||
|
||||
@@ -133,13 +133,15 @@ function style_select($default_style, $select_name = "style")
|
||||
{
|
||||
$templates = get_templates();
|
||||
|
||||
$style_selected = '<select name="' . $select_name . '" >';
|
||||
foreach ($templates as $template)
|
||||
{
|
||||
$selected = ( $template == $default_style ) ? ' selected="selected"' : '';
|
||||
$style_select.= '<option value="'.$template.'"'.$selected.'>';
|
||||
$style_select.= $template.'</option>';
|
||||
$style_selected.= '<option value="'.$template.'"'.$selected.'>';
|
||||
$style_selected.= $template.'</option>';
|
||||
}
|
||||
return $style_select;
|
||||
$style_selected .= '</select>';
|
||||
return $style_selected;
|
||||
}
|
||||
|
||||
// The function get_cat_display_name returns a string containing the list
|
||||
|
||||
@@ -33,7 +33,7 @@ $time = get_elapsed_time( $t2, get_moment() );
|
||||
$template->assign_vars(
|
||||
array(
|
||||
'TIME' => $time,
|
||||
'VERSION' => $conf['version'],
|
||||
'VERSION' => PHPWG_VERSION,
|
||||
'MAIL'=>$conf['mail_webmaster'],
|
||||
|
||||
'L_GEN_TIME' => $lang['generation_time'],
|
||||
|
||||
Reference in New Issue
Block a user