in der "function recursive_copy($from_path, $to_path)" in line 440 der "contenido/includes/functions.general.php" wird die rekursion nach verzeichniswechsel am ende mit leere variable angesprungen, und erzeugt die fehlermeldungen (Warning: copy(/www/htdocs/v119307/kunden_cms/contenido/kunden/max/images): failed to open stream: Ist ein Verzeichnis in /www/htdocs/v119307/kunden_cms/contenido/contenido/includes/functions.general.php on line 462 )
wenn man den code dahingehend ändert (else - schleife) sind die meldungen weg:
while (($myfile = readdir($myhandle)) !== false)
{
if (($myfile != ".") && ($myfile != ".."))
{
if (is_dir($myfile))
{
recursive_copy($from_path.$myfile."/", $to_path.$myfile."/");
chdir($from_path);
}
else
{
if (file_exists($myfile))
{
copy($from_path.$myfile, $to_path.$myfile);
}
}
}
}
kleiner bug in "/includes/functions.general.php"
ich hab einen split of gemacht von
-> http://contenido.org/forum/viewtopic.php?t=10474
-> http://contenido.org/forum/viewtopic.php?t=10474
*** make your own tools (wishlist :: thx)
Etwas sauberer....
PS: Danke für den tollen Tip, hat mir echt weitergeholfen.
Vielleicht etwas übersichtlicher und sauberer könnte man das so machen:
anstatt:
else
{
if (file_exists($myfile))
{
copy($from_path.$myfile, $to_path.$myfile);
}
}
einfach:
elseif (file_exists($myfile))
{
copy($from_path.$myfile, $to_path.$myfile);
}
Vielleicht etwas übersichtlicher und sauberer könnte man das so machen:
anstatt:
else
{
if (file_exists($myfile))
{
copy($from_path.$myfile, $to_path.$myfile);
}
}
einfach:
elseif (file_exists($myfile))
{
copy($from_path.$myfile, $to_path.$myfile);
}
Done.
Gruß
HerrB
Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net