public
Description: Blog Modules for CMS Made Simple 2.0
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsms-blog.git
wishy (author)
Tue Apr 08 07:25:24 -0700 2008
commit  3aef452680351b0d4f2343fd4fbd0aa68bbf9255
tree    60dc7a2e6eb8602e858eac4d4c856382affdd232
parent  45e6bc007ff3c2a1dd558118c8e484be1cf61dff
cmsms-blog / action.detail.php
100644 19 lines (15 sloc) 0.398 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
if (!isset($gCms)) die("Can't call actions directly!");
 
$post = null;
if (isset($params['url']))
{
  $post = cms_orm('BlogPost')->find_by_url($params['url']);
}
else if (isset($params['post_id']))
{
  $post = cms_orm('BlogPost')->find_by_id($params['post_id']);
}
 
$smarty->assign('post', $post);
 
echo $this->process_template_from_database($id, $return_id, 'detail');
 
# vim:ts=4 sw=4 noet
?>