upgrader dead files and dirs

Is there more? Please add!
This commit is contained in:
Ian 2015-09-05 12:43:39 +02:00
parent 80716280a8
commit f63d884cfe
2 changed files with 17 additions and 6 deletions

View File

@ -246,20 +246,25 @@ $tasks = array(array('version' => '0.5.1',
array('version' => '2.0.2', array('version' => '2.0.2',
'function' => 'serendipity_removeDeadFiles_SPL', 'function' => 'serendipity_removeDeadFiles_SPL',
'title' => 'Removal of obsolete and still resting files in 2.0', 'title' => 'Removal of obsolete and still resting files in 2.0',
'arguments' => array(substr($serendipity['serendipityPath'], 0, -1), $dead_files_rest, array('internals'), true), 'arguments' => array(substr($serendipity['serendipityPath'], 0, -1), $dead_files_200, array('internals'), true),
'desc' => 'The following old dead files will additionally be removed from your system.<br><pre>' . implode(', ', $dead_files_rest) . '</pre>'), 'desc' => 'The following old dead files will be removed from your system.<br><pre>' . implode(', ', $dead_files_200) . '</pre>'),
array('version' => '2.0.2', array('version' => '2.0.2',
'function' => 'recursive_directory_iterator', 'function' => 'recursive_directory_iterator',
'title' => 'Removal of obsolete and dead directories', 'title' => 'Removal of obsolete and dead directories',
'arguments' => array($dead_dirs_rest), 'arguments' => array($dead_dirs_200),
'desc' => 'The following old dead directories will additionally be removed from your system.<br><pre>' . implode(', ', $dead_dirs_rest) . '</pre>'), 'desc' => 'The following old dead directories will be removed from your system.<br><pre>' . implode(', ', $dead_dirs_200) . '</pre>'),
array('version' => '2.0.2', array('version' => '2.0.2',
'function' => 'serendipity_upgrader_rewriteFeedIcon', 'function' => 'serendipity_upgrader_rewriteFeedIcon',
'title' => 'Rewrite path of big feedicon', 'title' => 'Rewrite path of big feedicon',
'desc' => 'Rewrite path of the big feedicon to not include the template path, since that path is not automatically detected'), 'desc' => 'Rewrite path of the big feedicon to not include the template path, since that path is not automatically detected'),
array('version' => '2.1.0',
'function' => 'serendipity_removeDeadFiles_SPL',
'title' => 'Removal of old dead files in v.2.0.2',
'arguments' => array(substr($serendipity['serendipityPath'], 0, -1), $dead_files_202, array('internals'), true),
'desc' => 'The following old dead files will be removed from your system.<br><pre>' . implode(', ', $dead_files_202) . '</pre>'),
); );

View File

@ -156,7 +156,7 @@ $dead_htmlarea_dirs = array(
); );
/* A list of old Serendipity files which were not marked obsolet with 2.0.0 upgrade - now 2.0.2 */ /* A list of old Serendipity files which were not marked obsolet with 2.0.0 upgrade - now 2.0.2 */
$dead_files_rest = array( $dead_files_200 = array(
'serendipity_editor.js', 'serendipity_editor.js',
'serendipity_define.js.php', 'serendipity_define.js.php',
'bundled-libs/dragdrop.js', 'bundled-libs/dragdrop.js',
@ -181,13 +181,19 @@ $dead_files_rest = array(
); );
/* A list of old lib directories which were not marked obsolet with 2.0.0 upgrade - now 2.0.2 */ /* A list of old lib directories which were not marked obsolet with 2.0.0 upgrade - now 2.0.2 */
$dead_dirs_rest = array( $dead_dirs_200 = array(
$serendipity['serendipityPath'] . 'htmlarea/plugins/ImageManage', $serendipity['serendipityPath'] . 'htmlarea/plugins/ImageManage',
$serendipity['serendipityPath'] . 'htmlarea/plugins', $serendipity['serendipityPath'] . 'htmlarea/plugins',
$serendipity['serendipityPath'] . 'bundled-libs/YahooUI/treeview', $serendipity['serendipityPath'] . 'bundled-libs/YahooUI/treeview',
$serendipity['serendipityPath'] . 'bundled-libs/YahooUI' $serendipity['serendipityPath'] . 'bundled-libs/YahooUI'
); );
/* A list of old or beta Serendipity files which were not marked obsolet with the 2.0.2 upgrade */
$dead_files_202 = array(
'templates/default/admin/media_showitem.tpl',
'templates/2k11/admin/media_showitem.tpl'
);
/** /**
* recursive directory call to purge files and directories * recursive directory call to purge files and directories
* *