git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 6919dda9 authored by mmn's avatar mmn

RobotstxtAction migrated to ManagedAction

parent acdcb2ad
......@@ -27,9 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if (!defined('STATUSNET')) {
exit(1);
}
if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Prints out a static robots.txt
......@@ -40,19 +38,9 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
class RobotstxtAction extends Action
class RobotstxtAction extends ManagedAction
{
/**
* Handles requests
*
* Since this is a relatively static document, we
* don't do a prepare()
*
* @param array $args GET, POST, and URL params; unused.
*
* @return void
*/
function handle($args)
public function showPage()
{
if (Event::handle('StartRobotsTxt', array($this))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment