Fix missing get date (#1740)

This commit is contained in:
Luffy
2024-02-28 10:57:47 +08:00
committed by GitHub
parent 3933a23ad7
commit d84e261f7b

View File

@@ -70,6 +70,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) {
* @property-read string $commentUrl
* @property-read string $trackbackUrl
* @property-read string $responseUrl
* @property-read string $year
* @property-read string $month
* @property-read string $day
*/
class Contents extends Base implements QueryInterface, RowFilterInterface, PrimaryKeyInterface, ParamsDelegateInterface
{
@@ -923,4 +926,28 @@ class Contents extends Base implements QueryInterface, RowFilterInterface, Prima
{
return $this->permalink . '#' . $this->respondId;
}
/**
* @return string
*/
protected function ___year(): string
{
return $this->date->year;
}
/**
* @return string
*/
protected function ___month(): string
{
return $this->date->month;
}
/**
* @return string
*/
protected function ___day(): string
{
return $this->date->day;
}
}