#1497 Images-dir not created in Scheduler

closed-fixed
5
2005-05-12
2005-03-25
No

WinXP
xampp
phpws 0.10.1 rc2

Scheduler did not create its image dir(s) during boost.
Maybe PHPWS_File is not able to create multiple dirs
in one turn (on windows?!). I used the announce-code to
patch boost/install.php and reduced the path
to /images/scheduler to get it to work.

$images = $GLOBALS['core']-
>home_dir .'images/scheduler/';

PHPWS_File::makeDir($images);
if(is_dir("{$GLOBALS['core']->home_dir}
images/scheduler"))
$content .= "Scheduler image directory {$GLOBALS
['core']->home_dir}images/scheduler successfully
created!<br />";
else
$content .= "Scheduler could not create the image
directory: {$GLOBALS['core']->home_dir}
images/scheduler<br />You will have to do this
manually!<br />";

PHPWS_File::recursiveFileCopy
(PHPWS_SOURCE_DIR . 'mod/scheduler/images/',
$images);

Of course the class/Scheduler.php has to be corrected
also to point to the new path. (old was wrong anyway ;)
-> line 416 and line 422

Yves

Discussion

  • Darren Greene

    Darren Greene - 2005-05-12
    • status: open --> closed
     
  • Darren Greene

    Darren Greene - 2005-05-12

    Logged In: YES
    user_id=783140

    This has been fixed in CVS. The problem was that the line
    with 'images/mod/scheduler/images' needed to be changed to
    'images/mod/scheduler/'.

    Darren

     
  • Darren Greene

    Darren Greene - 2005-05-12
    • assigned_to: nobody --> dg49379
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks