-
-
Save hissy/5354ad067308059358f8 to your computer and use it in GitHub Desktop.
hardcode date archive block start date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('C5_EXECUTE') or die("Access Denied."); | |
class DateArchiveBlockController extends Concrete5_Controller_Block_DateArchive { | |
public function view() { | |
if($this->targetCID > 0) { | |
$target = Page::getByID($this->targetCID); | |
$this->set('target',$target); | |
} | |
$firstPost = new DateTime('2012-01-01T00:00:00+09:00'); | |
$this->set('firstPost',$firstPost); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment