Comment form in offline mode

fiol

Joined: 2006-05-22
Posts: 1
Posted: Mon, 2006-05-22 11:39

When I tried to download an entire gallery installation in offline mode, I would like to keep the possibility to view comments. But of course the comment form has no sense.

Thus, I propose the following (trivial) patch, which applies to Gallery version: 1.5.3

*** content.php.bak 2006-05-22 13:22:37.322061492 +0200
--- content.php 2006-05-22 13:23:16.847893120 +0200
***************
*** 79,85 ****

echo showComments($index, $album, $newestFirst);

! if ($addComments) {
/* Default is the popup link.
* addType given through function call overrides default.
*/
--- 79,85 ----

echo showComments($index, $album, $newestFirst);

! if ($addComments && !$gallery->session->offline) {
/* Default is the popup link.
* addType given through function call overrides default.
*/

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2006-05-22 12:37

Hello,

good idea,

can you add this as a unified diff/patch to the patch tracker for Gallery on the sourceforge pages ?
Assign it to me (JensT).

Thanks,

Jens
--
Last Gallery v1 Developer and v1 translation manager.