[Comoblog-commit] comoblog/_install upgrade_3.php,1.3,1.4
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-20 08:01:43
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25960 Modified Files: upgrade_3.php Log Message: Fix to stop module developers getting upgrade failures on half-built modules Index: upgrade_3.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/upgrade_3.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- upgrade_3.php 18 Nov 2005 08:41:52 -0000 1.3 +++ upgrade_3.php 20 Nov 2005 08:01:35 -0000 1.4 @@ -22,7 +22,7 @@ if (is_dir($old_path)) { $dh = opendir($old_path); while (($dir = readdir($dh)) != false) { - if (strpos($dir, "mod_") !== FALSE) { + if (strpos($dir, "mod_") !== FALSE && file_exists($old_path."/".$dir."/install/".$dir.".xml")) { if (is_dir($new_path."/".$dir) == FALSE) { module_deactivate_by_name($dir); if (is_module_certified($dir)) |