1
I'm not exactly sure what the correct mechanism is for submitting a hack/fix to this module.. but here goes..
The module wouldn't sort the images in the album correctly.. here are the diffs (visual source safe style) for the changes I made to classes/album.php and sort_album.php
If you want them in a different format.. please let me know..
Thanks
HACK:
album.php
211 Ins: return $this->save();
220 Ins:
223 Change: $this->save();
To: // Don't save yet.. wait until the rest is finished as well..
224 Change:
To: //$this->save();
227 Ins:
306 Ins: return $this->save();
450 Change:
To:
505 Change: if ($fd = fs_fopen($gallery->app->albumDir . "/serial.dat", "w"
To: $serial2 = $gallery->app->albumDir . "/serial.dat";
510 Ins: if ($fd = fs_fopen($serial2, "w")) {
sort_album.php
46 Change: if ($confirm) {
To: if ($sort) {
49 Change: $gallery->album->save();
To: //$gallery->album->save();
54 Change: $gallery->album->save();
To: //echo $gallery->album->save();
77 Change: echo makeFormIntro("sort_album.php"); ?>
To: echo makeFormIntro("sort_album.php",
78 Ins: array("name" => "theform",
79 Ins: "method" => "POST")); ?>
110 Change:
To:
113 Ins: