Skip to content

Commit

Permalink
feature 1502
Browse files Browse the repository at this point in the history
Remove automatic file creation for local-layout.css during install or upgrade.php.
Move icon/admin directory from default theme.

git-svn-id: http://piwigo.org/svn/trunk@5124 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 13, 2010
1 parent 14778ce commit 5958c85
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 58 deletions.
20 changes: 0 additions & 20 deletions admin/include/functions_upgrade.php
Expand Up @@ -68,26 +68,6 @@ function prepare_conf_upgrade()
define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
}

// Create empty local files to avoid log errors
function create_empty_local_files()
{
$files =
array (
PHPWG_ROOT_PATH . 'template-common/local-layout.css',
PHPWG_ROOT_PATH . 'template/yoga/local-layout.css'
);

foreach ($files as $path)
{
if (!file_exists ($path))
{
$file = @fopen($path, "w");
@fwrite($file , '/* You can modify this file */');
@fclose($file);
}
}
}

// Deactivate all non-standard plugins
function deactivate_non_standard_plugins()
{
Expand Down
3 changes: 0 additions & 3 deletions install.php
Expand Up @@ -312,9 +312,6 @@
@fputs($fp, $file_content, strlen($file_content));
@fclose($fp);

// Create empty local files to avoid log errors
create_empty_local_files();

// tables creation, based on piwigo_structure.sql
execute_sqlfile(
PHPWG_ROOT_PATH.'install/piwigo_structure-'.$dblayer.'.sql',
Expand Down
4 changes: 2 additions & 2 deletions themes/default/default-colors.css
Expand Up @@ -51,7 +51,7 @@ INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rate
font-weight: bold;
margin: 5px;
border: 1px solid red;
background-image: url(icon/admin/errors.png);
background-image: url(icon/errors.png);
background-repeat: no-repeat;
background-position: top right;
padding: 10px 50px 10px 10px;
Expand All @@ -63,7 +63,7 @@ INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rate
.infos {
color: #002000;
background-color: #98fb98; /* palegreen */
background-image: url(icon/admin/infos.png);
background-image: url(icon/infos.png);
background-repeat: no-repeat;
background-position: top right;
margin: 5px;
Expand Down
30 changes: 0 additions & 30 deletions themes/default/icon/admin/index.php

This file was deleted.

File renamed without changes
File renamed without changes
3 changes: 0 additions & 3 deletions upgrade.php
Expand Up @@ -292,9 +292,6 @@ function print_time($message)
deactivate_non_standard_plugins();
}

// Create empty local files to avoid log errors
create_empty_local_files();

$page['upgrade_end'] = get_moment();

$template->assign(
Expand Down

0 comments on commit 5958c85

Please sign in to comment.