{
global $manager;
- $item = false;
- $itemid = intRequestVar('itemid');
- $item =& $manager->getItem($itemid, 1, 1);
-
- if ( $item )
- {
- $blog =& $manager->getBlog($item['blogid']);
-
- if ( $blog->convertBreaks() && requestVar('action') == 'itemedit' )
- {
- $item['body'] = removeBreaks($item['body']);
- $item['more'] = removeBreaks($item['more']);
- }
- }
-
- $contents = array();
- if ( requestVar('action') == 'itemedit' )
- {
- $contents = $item;
- }
- elseif ( requestVar('action') == 'createitem' )
- {
- $data = array(
- 'contents' => &$contents,
- 'blog' => &$this->blog
- );
- $manager->notify('PreAddItemForm', $data);
- }
+ $contents = Admin::$contents;
$itemtime = getdate($contents['timestamp']);
echo $itemtime[$key];
return;