From: Joe Atzberger (siptest) <[EMAIL PROTECTED]>
This prevents the following log entries:
error EXPR:at pos 42: non-initialized variable OPACViewOthersSuggestions
EXPR must NOT be used unless the author can guarantee ALL names referenced
will be defined at the BEGINNING of TMPL execution. That suggests that in
.inc files, only variables populated by get_template... are valid, since
the author cannot guarantee what other templates might include the file.
---
koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
index d9d5f64..0fe8239 100755
--- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
@@ -69,15 +69,14 @@
<!--TMPL_IF NAME="virtualshelves" --><a href="/cgi-bin/koha/opac-shelves.pl"
id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists
</span></a><!-- /TMPL_IF -->
-
<!-- /TMPL_IF -->
</form>
-<div id="moresearches"><a href="/cgi-bin/koha/opac-search.pl">Advanced
Search</a><!-- TMPL_IF name="OpacBrowser" --> | <a
href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF
--><!-- TMPL_IF name="OpacAuthorities" --> | <a
href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!--
/TMPL_IF --><!-- TMPL_IF name="OpacCloud" --> | <a
href="/cgi-bin/koha/opac-tags_subject.pl">Tag Cloud</a><!-- /TMPL_IF --><!--
TMPL_IF name="OpacTopissue" --> | <a
href="/cgi-bin/koha/opac-topissues.pl?limit=10&timeLimit=3">Most
Popular</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="suggestion" --><!-- TMPL_IF
EXPR="AnonSuggestions||OPACViewOthersSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!-- /TMPL_IF
--><!-- /TMPL_IF --></div>
+<div id="moresearches"><a href="/cgi-bin/koha/opac-search.pl">Advanced
Search</a><!-- TMPL_IF name="OpacBrowser" --> | <a
href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF
--><!-- TMPL_IF name="OpacAuthorities" --> | <a
href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!--
/TMPL_IF --> | <a href="/cgi-bin/koha/opac-tags.pl">User Tags</a><!-- TMPL_IF
name="OpacCloud" --> | <a href="/cgi-bin/koha/opac-tags_subject.pl">Tag
Cloud</a><!-- /TMPL_IF --><!-- TMPL_IF name="OpacTopissue" --> | <a
href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a><!-- /TMPL_IF --><!--
TMPL_IF NAME="suggestion" --><!-- TMPL_IF NAME="AnonSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!--
TMPL_ELSIF NAME="OPACViewOthersSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!-- /TMPL_IF
--><!-- /TMPL_IF --></div>
<!-- TMPL_ELSE -->
-<div id="moresearches" style="float:left;"><!-- TMPL_IF name="OpacBrowser" -->
| <a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF
--><!-- TMPL_IF name="OpacAuthorities" --> | <a
href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!--
/TMPL_IF --><!-- TMPL_IF name="OpacCloud" --> | <a
href="/cgi-bin/koha/opac-tags_subject.pl">Tag Cloud</a><!-- /TMPL_IF --><!--
TMPL_IF name="OpacTopissue" --> | <a
href="/cgi-bin/koha/opac-topissues.pl?limit=10&timeLimit=3">Most
Popular</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="suggestion" --><!-- TMPL_IF
EXPR="AnonSuggestions||OPACViewOthersSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!-- /TMPL_IF
--><!-- /TMPL_IF --></div><!-- TMPL_IF NAME="opacbookbag" --><span
id="cmspan">Cart</span><!-- /TMPL_IF -->
-<!--TMPL_IF NAME="virtualshelves" --><a href="/cgi-bin/koha/opac-shelves.pl"
id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists
</span></a><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
+<div id="moresearches"><!-- TMPL_IF name="OpacBrowser" --> | <a
href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF
--><!-- TMPL_IF name="OpacAuthorities" --> | <a
href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!--
/TMPL_IF --> | <a href="/cgi-bin/koha/opac-tags.pl">User Tags</a><!-- TMPL_IF
name="OpacCloud" --> | <a href="/cgi-bin/koha/opac-tags_subject.pl">Tag
Cloud</a><!-- /TMPL_IF --><!-- TMPL_IF name="OpacTopissue" --> | <a
href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a><!-- /TMPL_IF --><!--
TMPL_IF NAME="suggestion" --><!-- TMPL_IF NAME="AnonSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!--
TMPL_ELSIF NAME="OPACViewOthersSuggestions" --> | <a
href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a><!-- /TMPL_IF
--><!-- /TMPL_IF --></div>
+<!-- /TMPL_UNLESS -->
</div>
</div>
--
1.5.5.GIT
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches