Author: sdumitriu
Date: 2007-11-26 17:15:54 +0100 (Mon, 26 Nov 2007)
New Revision: 6081

Modified:
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
Log:
XWIKI-1899: The #toc macro requires programming rights for numbering sections
Fixed (velocity part)


Modified: xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm       
2007-11-26 16:15:24 UTC (rev 6080)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm       
2007-11-26 16:15:54 UTC (rev 6081)
@@ -202,10 +202,9 @@
   #set ($numbered = false)
  #else
   #set ($numbered = $boolean.valueOf($numbered))
-  #set ($context.context.tocNumbered = $numbered)
  #end
  #set ($tocData = ${tdoc.getTOC($init, $max, $numbered)})
- #set ($context.context.tocData = $tocData)
+ #set ($context.tocData = $tocData)
  #set ($lastLevel = $init - 1)
  #set ($depth = 0)
  #set ($openeditem = true)

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to