• R/O
  • HTTP
  • SSH
  • HTTPS

magic3: Commit

Cloud computing platform


Commit MetaInfo

Revision15f1f395dd3faa3eb10d48594fa9c270c526cafd (tree)
Time2017-08-13 21:31:42
Authornaoki hirata <naoki@magi...>
Commiternaoki hirata

Log Message

WordPressテンプレート機能更新。

Change Summary

Incremental Difference

--- a/include/wp/contentApi.php
+++ b/include/wp/contentApi.php
@@ -744,12 +744,14 @@ class ContentApi extends BaseApi
744744 return $url;
745745 }
746746 /**
747- * 年画面のURLを取得
747+ * 年月日画面のURLを取得
748748 *
749749 * @param int $year 年
750+ * @param int $month 月
751+ * @param int $day 日
750752 * @return string URL
751753 */
752- function getYearUrl($year)
754+ function getYearMonthDayUrl($year, $month = null, $day = null)
753755 {
754756 $baseUrl = '';
755757 $urlParams = '';
@@ -777,8 +779,10 @@ class ContentApi extends BaseApi
777779 $baseUrl .= '?' . $urlParams . '&';
778780 }
779781
780- // 年を付加
782+ // 年月日を付加
781783 $baseUrl .= M3_REQUEST_PARAM_YEAR . '=' . $year;
784+ if (isset($month)) $baseUrl .= '&'. M3_REQUEST_PARAM_MONTH . '=' . $month;
785+ if (isset($day)) $baseUrl .= '&'. M3_REQUEST_PARAM_DAY . '=' . $day;
782786
783787 $url = $this->getUrl($baseUrl);
784788 return $url;
Show on old repository browser