Closed GoogleCodeExporter closed 9 years ago
Reading issue 47 more carefully I now think this issue is the same as that. I
think it is a PHP 5.1.6 issue
Forgot to say that DL is 2.0
/Mats
Original comment by tillm...@gmail.com
on 4 May 2011 at 9:10
I fixed this myself by adding code in file 'file.func.php'
I added '->__tostring()' in the fwrite function
function save_file($content, $fileloc) {
global $lang;
if(file_exists($fileloc)) {
if (!is_writable($fileloc))
throw new Exception($fileloc." ".$lang['error_filerw']);
}
$fp = fopen($fileloc,'w');
if(!$fp) {
throw new Exception($fileloc." ".$lang['error_filerw']);
}
foreach ($content as $line) {
$write = fwrite($fp, $line->__tostring());
}
fclose($fp);
}
Chers
Original comment by tillm...@gmail.com
on 5 May 2011 at 3:23
That is an interesting issue as PHP should call the __toString method
automatically. A s all objects within domus.link inherit from Element.class.php
which has the __toString function defined and which you show you are forcing in
the code change.
Will see about including that change after some more testing, but if it solves
the issue in different installs, most likely a good idea.
Thanks for the review and work on this.
Original comment by bwsamuels@gmail.com
on 16 May 2011 at 3:53
Original comment by bwsamuels@gmail.com
on 16 May 2011 at 4:01
Original comment by bwsamuels@gmail.com
on 17 May 2011 at 1:44
Original comment by bwsamuels@gmail.com
on 17 May 2011 at 1:45
Including these changes in 2.01
Thanks Mats
Original comment by bwsamuels@gmail.com
on 15 Jun 2011 at 2:10
Original comment by bwsamuels@gmail.com
on 2 Dec 2011 at 3:09
This issue was closed by revision r891.
Original comment by bwsamuels@gmail.com
on 4 Dec 2011 at 6:57
Original issue reported on code.google.com by
tillm...@gmail.com
on 4 May 2011 at 9:05