From 5958c85b7fe75dbbfed35a7b896659ccaf4f6bda Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 13 Mar 2010 00:23:05 +0000 Subject: feature 1502 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 --- admin/include/functions_upgrade.php | 20 -------------------- install.php | 3 --- themes/default/default-colors.css | 4 ++-- themes/default/icon/admin/errors.png | Bin 3249 -> 0 bytes themes/default/icon/admin/index.php | 30 ------------------------------ themes/default/icon/admin/infos.png | Bin 2250 -> 0 bytes themes/default/icon/errors.png | Bin 0 -> 3249 bytes themes/default/icon/infos.png | Bin 0 -> 2250 bytes upgrade.php | 3 --- 9 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 themes/default/icon/admin/errors.png delete mode 100644 themes/default/icon/admin/index.php delete mode 100644 themes/default/icon/admin/infos.png create mode 100644 themes/default/icon/errors.png create mode 100644 themes/default/icon/infos.png diff --git a/admin/include/functions_upgrade.php b/admin/include/functions_upgrade.php index 10eedf20b..2afb6020e 100644 --- a/admin/include/functions_upgrade.php +++ b/admin/include/functions_upgrade.php @@ -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() { diff --git a/install.php b/install.php index 46943814c..fffb9f5f0 100644 --- a/install.php +++ b/install.php @@ -312,9 +312,6 @@ define(\'DB_COLLATE\', \'\'); @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', diff --git a/themes/default/default-colors.css b/themes/default/default-colors.css index cc094cf0e..8cd022867 100644 --- a/themes/default/default-colors.css +++ b/themes/default/default-colors.css @@ -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; @@ -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; diff --git a/themes/default/icon/admin/errors.png b/themes/default/icon/admin/errors.png deleted file mode 100644 index 3c8a37df5..000000000 Binary files a/themes/default/icon/admin/errors.png and /dev/null differ diff --git a/themes/default/icon/admin/index.php b/themes/default/icon/admin/index.php deleted file mode 100644 index 871b52b6a..000000000 --- a/themes/default/icon/admin/index.php +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/themes/default/icon/admin/infos.png b/themes/default/icon/admin/infos.png deleted file mode 100644 index dc8c8a457..000000000 Binary files a/themes/default/icon/admin/infos.png and /dev/null differ diff --git a/themes/default/icon/errors.png b/themes/default/icon/errors.png new file mode 100644 index 000000000..3c8a37df5 Binary files /dev/null and b/themes/default/icon/errors.png differ diff --git a/themes/default/icon/infos.png b/themes/default/icon/infos.png new file mode 100644 index 000000000..dc8c8a457 Binary files /dev/null and b/themes/default/icon/infos.png differ diff --git a/upgrade.php b/upgrade.php index b661d5b84..df6704e45 100644 --- a/upgrade.php +++ b/upgrade.php @@ -292,9 +292,6 @@ if (isset($_POST['submit']) and check_upgrade()) deactivate_non_standard_plugins(); } - // Create empty local files to avoid log errors - create_empty_local_files(); - $page['upgrade_end'] = get_moment(); $template->assign( -- cgit v1.2.3