1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8namespace Tiki\MailIn\Action;
9
10use Tiki\MailIn\Account;
11use Tiki\MailIn\Source\Message;
12use TikiLib;
13
14class WikiPrepend extends WikiPut
15{
16	function getName()
17	{
18		return tr('Wiki Prepend');
19	}
20
21	protected function handleContent($data, $info)
22	{
23		if ($info) {
24			return $data['body'] . "\n" . $info['data'];
25		} else {
26			return $data['body'];
27		}
28	}
29}
30