mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
- admin/cat_options page added : manage options for the whole categories
tree (uploadable, commentable). status and visible will be soon added - admin.php : $conf_link var to avoid lines longer than 79 characters - config.upload_available configuration parameter disappear : it's simpler to manage with cat_options - config.show_comments idem : new column categories.commentable, each categories can be commentable or not - categories.site_id becomes a nullable column : a virtual category does belong to no site - function display_select_categories has a new argument : $CSS_classes array to optionnaly assign a CSS class to each category in the select field - added informations in include/config.inc.php for setting default value of : - categories.visible - categories.status - categories.uploadable - categories.commentable - 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best rated and most visited categories git-svn-id: http://piwigo.org/svn/trunk@602 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -167,4 +167,19 @@ $conf['show_queries'] = false;
|
||||
|
||||
// show_gt : display generation time at the bottom of each page
|
||||
$conf['show_gt'] = true;
|
||||
|
||||
// Default options for new categories.
|
||||
//
|
||||
// Some options for categories (commentable, uploadable, status, visible)
|
||||
// must be set directly in the database by changing the corresponding
|
||||
// default values of the column. Examples :
|
||||
//
|
||||
// ALTER TABLE phpwebgallery_categories ALTER visible SET DEFAULT 'true';
|
||||
// ALTER TABLE phpwebgallery_categories ALTER status SET DEFAULT 'private';
|
||||
// ALTER TABLE phpwebgallery_categories ALTER uploadable SET DEFAULT 'true';
|
||||
// ALTER TABLE phpwebgallery_categories ALTER commentable SET DEFAULT 'false';
|
||||
//
|
||||
// MySQL default values are used when inserting a row and that no value is
|
||||
// given for the column. In PhpWebGallery, the above columns are not valued
|
||||
// during categories insertion, so default values are important.
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user