Seditio Source
Root |
./othercms/PHPFusion 9.10.20/infusions/forum/classes/postify/new.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: new.php
| Author: Chan (Frederick MC Chan)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
namespace PHPFusion\Forums\Postify;

/**
 * Class Postify_New
 *
 * @status  Stable
 *
 * @package PHPFusion\Forums\Postify
 */
class Postify_New extends Forum_Postify {
    public function
execute() {
       
add_to_title(self::$locale['global_201'].self::$locale['forum_0501']);
       
add_breadcrumb(['link' => FUSION_REQUEST, 'title' => self::$locale['forum_0501']]);
       
render_postify([
           
'title'   => self::$locale['forum_0501'],
           
'message' => $this->getPostifyErrorMessage() ?: self::$locale['forum_0543'],
           
'error'   => $this->getPostifyErrorMessage(),
           
'link'    => $this->getPostifyUri()
        ]);
    }
}