• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

blogger


Commit MetaInfo

Révision3eac8110d96ae9ef5c0f51bc07b99f533e25ecde (tree)
l'heure2017-10-25 20:50:54
Auteurumorigu <umorigu@gmai...>
Commiterumorigu

Message de Log

BugTrack/693 calendar_viewer plugin: Extend the show limit (1 to 4)

Change Summary

Modification

--- a/plugin/calendar_viewer.inc.php
+++ b/plugin/calendar_viewer.inc.php
@@ -17,6 +17,10 @@ define('PLUGIN_CALENDAR_VIEWER_DATE_FORMAT',
1717 // '[Y-m-d]' // '[2004-02-09]'
1818 'Y/n/j ($\w)' // '2004/2/9 (Mon)'
1919 );
20+/**
21+ * Limit of show count per pagename
22+ */
23+define('PLUGIN_CALENDAR_VIEWER_MAX_SHOW_COUNT', 4);
2024
2125 // ----
2226
@@ -106,7 +110,7 @@ function plugin_calendar_viewer_convert()
106110 $show_count[$pagename] = 0;
107111 }
108112 $show_count[$pagename] += 1;
109- if ($show_count[$pagename] > 4) {
113+ if ($show_count[$pagename] > PLUGIN_CALENDAR_VIEWER_MAX_SHOW_COUNT) {
110114 $s_page = htmlsc($pagename);
111115 return "#calendar_viewer(): Exceeded the limit of show count: $s_page<br />";
112116 }