Submitted by sparr on 15 September, 2007 - 06:10.

if "show view counts" is turned off and gallery debugging is turned on then every thumbnail has below it an error like the following:

Notice: Undefined index: showViewCount in /home/content/foo/bar/html/gallery2/data.directory/smarty/templates_c/%%1132922061/%%53^530^53053313%%album.tpl.php on line 85

This seems to be caused by showViewCount not being set in this case. My attempt at a fix, as a handwritten diff, is as follows:

--- themes/nzdi/templates/album.tpl
+++ themes/nzdi/templates/album.tpl
@@ -110,6 +110,8 @@
{else}
{assign var="showViewCount" value=true}
{/if}
+ {else}
+ {assign var="showViewCount" value=false}
{/if}

{g->block type="core.ItemInfo"

login or register to post comments

View other: