Plugin Directory

Changeset 1497423


Ignore:
Timestamp:
09/17/2016 12:26:26 PM (10 years ago)
Author:
oternet
Message:

commit

Location:
idea-board/trunk
Files:
1 added
19 edited

Legend:

Unmodified
Added
Removed
  • idea-board/trunk/assets/css/idea-board.css

    r1496925 r1497423  
    475475}
    476476
     477#idea-board .idea-board-entry-content img {
     478    border: inherit;
     479}
     480
    477481#idea-board .idea-text-over {
    478482    overflow: hidden;
  • idea-board/trunk/idea-board.php

    r1497351 r1497423  
    1919    $loader->add( 'ideapeople\\', dirname( __FILE__ ) . '/src/' );
    2020
    21     require_once dirname( __FILE__ ) . '/idea-board-filter.php';
     21    require_once dirname( __FILE__ ) . '/idea-board-functions.php';
    2222
    2323    PluginConfig::init( __FILE__ );
     
    2525    $plugin = new Plugin();
    2626    $plugin->run();
    27 
    28     $GLOBALS[ 'idea_board_plugin' ] = $plugin;
    2927
    3028    do_action( 'idea_board_init' );
     
    3432
    3533run_idea_board();
    36 
    37 /**
    38  * @return Plugin
    39  */
    40 function idea_board_plugin() {
    41     global $idea_board_plugin;
    42 
    43     return $idea_board_plugin;
    44 }
  • idea-board/trunk/src/ideapeople/board/Comment.php

    r1496664 r1497423  
    7171        return get_comment_meta( $comment_ID, 'comment_password', true );
    7272    }
     73
     74    public static function add_comment_fields() {
     75        echo sprintf( '<input type="hidden" name="idea_comment_nonce" value="%s">', wp_create_nonce( 'idea_comment_edit' ) );
     76        echo sprintf( '<input type="hidden" name="comment_ID" value="%s">', get_query_var( 'comment_ID' ) );
     77    }
     78
     79    public static function add_comment_default_fields( $fields ) {
     80        $post = get_post();
     81
     82        if ( $post->post_type != PluginConfig::$board_post_type ) {
     83            return $fields;
     84        }
     85
     86        $fields[ 'comment-form-password' ] =
     87            '<p class="comment-form-password"><label for="comment_password">' . __( 'Password' ) . '<span class="required">*</span></label> ' .
     88            '<input id="comment_password" name="comment_password" type="password" size="30" maxlength="200" required /></p>';
     89
     90        $fields = apply_filters( 'idea_board_add_comment_fields', $fields, $post );
     91
     92        return $fields;
     93    }
    7394}
  • idea-board/trunk/src/ideapeople/board/Editor.php

    r1497350 r1497423  
    1010
    1111use ideapeople\board\setting\Setting;
     12use ideapeople\util\wp\WpNoprivUploader;
    1213
    1314class Editor {
     
    4041
    4142    public static function text_area( $args ) { ?>
    42         <label for="<?php echo $args['name'] ?>" class="idea-board-hide"></label>
    43         <textarea name="<?php echo $args['name'] ?>"
    44                   id="<?php echo $args['name'] ?>"
    45                   class="<?php echo $args['name'] ?>"
    46                   rows="10"><?php echo $args['content'] ?></textarea>
     43        <label for="<?php echo $args[ 'name' ] ?>" class="idea-board-hide"></label>
     44        <textarea name="<?php echo $args[ 'name' ] ?>"
     45                  id="<?php echo $args[ 'name' ] ?>"
     46                  class="<?php echo $args[ 'name' ] ?>"
     47                  rows="10"><?php echo $args[ 'content' ] ?></textarea>
    4748        <?php
    4849    }
     
    5051    public static function wp_editor( $args ) {
    5152        if ( ! is_user_logged_in() ) {
    52             idea_board_plugin()->nopriv_uploader->upload_button();
     53            /**
     54             * @var $idea_board_nopriv_uploader WpNoprivUploader;
     55             */
     56            global $idea_board_nopriv_uploader;
     57
     58            $idea_board_nopriv_uploader->upload_button();
    5359        }
    5460
    55         wp_editor( $args['content'], $args['name'], array() );
     61        wp_editor( $args[ 'content' ], $args[ 'name' ], array() );
    5662    }
    5763
     
    6672        $editor = self::get_editor( $board_editor );
    6773
    68         if ( isset( $editor['args'] ) && ! empty( $editor['args'] ) ) {
    69             $args = wp_parse_args( $editor['args'], $args );
     74        if ( isset( $editor[ 'args' ] ) && ! empty( $editor[ 'args' ] ) ) {
     75            $args = wp_parse_args( $editor[ 'args' ], $args );
    7076        }
    7177
    7278        ob_start();
    7379
    74         call_user_func( $editor['callback'], $args );
     80        call_user_func( $editor[ 'callback' ], $args );
    7581        $content = ob_get_contents();
    7682        ob_end_clean();
  • idea-board/trunk/src/ideapeople/board/Plugin.php

    r1497350 r1497423  
    1010use ideapeople\board\action\AdminAction;
    1111use ideapeople\board\action\AdminGlobalAction;
     12use ideapeople\board\action\AdminPostAction;
    1213use ideapeople\board\action\CommentAction;
    1314use ideapeople\board\action\FileAction;
     
    1920use ideapeople\board\helper\WordpressPopularPostsHelper;
    2021use ideapeople\board\validator\ViewValidator;
    21 use ideapeople\util\http\Request;
    2222use ideapeople\util\wp\PluginLoader;
    2323use ideapeople\util\wp\PostOrderGenerator;
     
    6868        register_activation_hook( PluginConfig::$__FILE__, array( $activator, 'register_activation_hook' ) );
    6969        register_deactivation_hook( PluginConfig::$__FILE__, array( $activator, 'register_deactivation_hook' ) );
    70     }
    71 
    72     public function register_global() {
    73         $this->post_order_generator = new PostOrderGenerator( PluginConfig::$board_post_type, 'idea_board_grp', 'idea_board_ord', 'idea_board_depth' );
    74         $this->nopriv_uploader      = new WpNoprivUploader( 'idea_board_upload', 'idea_upload_file', PluginConfig::$plugin_url );
    75 
    76         $this->helper_loader = new HelperLoader();
    7770    }
    7871
     
    157150        $seo = new Seo();
    158151        $this->loader->add_action( 'wp', $seo, 'active_seo' );
     152
     153        $admin_post_action = new AdminPostAction();
     154        $this->loader->add_filter( 'wp_insert_post_data', $admin_post_action, 'restore_author', 10, 2 );
     155        $this->loader->add_filter( "manage_edit-" . PluginConfig::$board_post_type . "_columns", $admin_post_action, 'edit_columns' );
     156        $this->loader->add_filter( "manage_" . PluginConfig::$board_post_type . "_posts_custom_column", $admin_post_action, 'custom_columns' );
     157        $this->loader->add_action( 'restrict_manage_posts', $admin_post_action, 'add_search_category' );
     158
     159        $auto_insert_page = new AutoInsertPage();
     160        $this->loader->add_filter( 'the_content', $auto_insert_page, 'auto_insert' );
     161
     162        $sort = new PostSort();
     163        $this->loader->add_filter( 'idea_post_order_pre', $sort, 'sort_notice' );
     164
     165        $post = new Post();
     166        $this->loader->add_filter( 'the_author', $post, 'get_the_author_nicename' );
     167        $this->loader->add_filter( 'protected_title_format', $post, 'remove_protected', 10, 2 );
     168
     169        $comment = new Comment();
     170        $this->loader->add_action( 'comment_form', $comment, 'add_comment_fields' );
     171        $this->loader->add_filter( 'comment_form_default_fields', $comment, 'add_comment_default_fields' );
    159172    }
    160173
     
    164177    }
    165178
     179    public function register_global() {
     180        $this->post_order_generator = new PostOrderGenerator( PluginConfig::$board_post_type, 'idea_board_grp', 'idea_board_ord', 'idea_board_depth' );
     181
     182        $this->nopriv_uploader = new WpNoprivUploader( 'idea_board_upload', 'idea_upload_file', PluginConfig::$plugin_url );
     183
     184        $this->helper_loader = new HelperLoader();
     185
     186        $GLOBALS[ 'idea_board_session' ] = WP_Session::get_instance();
     187
     188        $GLOBALS[ 'idea_board_post_order_generator' ] = $this->post_order_generator;
     189
     190        $GLOBALS[ 'idea_board_nopriv_uploader' ] = $this->nopriv_uploader;
     191
     192        $GLOBALS[ 'idea_board_loader' ] = $this->loader;
     193
     194        $GLOBALS[ 'idea_board_helper_loader' ] = $this->helper_loader;
     195    }
     196
    166197    public function register_global_vars() {
    167         $GLOBALS['idea_board_page_mode'] = get_query_var( 'page_mode' );
    168 
    169         $GLOBALS['idea_board_pid'] = get_query_var( 'pid' );
    170 
    171         $GLOBALS['idea_board_session'] = WP_Session::get_instance();
     198        $GLOBALS[ 'idea_board_page_mode' ] = get_query_var( 'page_mode' );
     199
     200        $GLOBALS[ 'idea_board_pid' ] = get_query_var( 'pid' );
    172201    }
    173202}
  • idea-board/trunk/src/ideapeople/board/Post.php

    r1496845 r1497423  
    1212use ideapeople\util\html\HtmlUtils;
    1313use ideapeople\util\wp\PasswordUtils;
     14use ideapeople\util\wp\PostOrderGenerator;
    1415use ideapeople\util\wp\PostUtils;
    1516use ideapeople\util\wp\TermUtils;
     
    161162    }
    162163
    163     public static function get_the_author_nicename( $post = null ) {
     164    public static function get_the_author_nicename( $author = null, $post = null ) {
    164165        $post = self::get_post( $post );
    165166
     
    295296
    296297    public static function get_user_email( $default = null, $post = null ) {
     298        $post = self::get_post( $post );
     299
     300        if ( $post->post_author ) {
     301            return get_userdata( $post->post_author )->user_email;
     302        }
     303
    297304        return self::get_post_meta( $post, 'idea_board_email', false );
    298305    }
     
    311318
    312319    public static function get_depth( $post = null ) {
    313         return idea_board_plugin()->post_order_generator->get_depth( $post );
     320        /**
     321         * @var $idea_board_post_order_generator PostOrderGenerator
     322         */
     323        global $idea_board_post_order_generator;
     324
     325        return $idea_board_post_order_generator->get_depth( $post );
    314326    }
    315327
     
    390402        return apply_filters( 'idea_board_the_file_list', $result, $attah_files, $board, $post );
    391403    }
     404
     405    public static function remove_protected( $protected, $post ) {
     406        $post = get_post( $post );
     407
     408        if ( $post->post_type == PluginConfig::$board_post_type ) {
     409            return '%s';
     410        }
     411
     412        return $protected;
     413    }
    392414}
  • idea-board/trunk/src/ideapeople/board/Query.php

    r1496664 r1497423  
    1515class Query extends WP_Query {
    1616    public function __construct( $query = '' ) {
     17        add_filter( 'parse_query', array( $this, 'taxonomy_term_in_query' ) );
     18
    1719        $query = wp_parse_args( $query, array(
    1820            'post_type'      => PluginConfig::$board_post_type,
     
    4446
    4547        $this->query_vars = wp_parse_args( $this->query_vars, $wp_the_query->query_vars );
     48    }
     49
     50    public function taxonomy_term_in_query( $query ) {
     51        global $pagenow;
     52
     53        $qv = &$query->query_vars;
     54
     55        if ( $pagenow == 'edit.php'
     56             && isset( $qv[ 'post_type' ] )
     57             && $qv[ 'post_type' ] == PluginConfig::$board_post_type
     58             && isset( $qv[ 'term' ] )
     59             && is_numeric( $qv[ 'term' ] )
     60             && $qv[ 'term' ] != 0
     61        ) {
     62            $term              = get_term_by( 'id', $qv[ 'term' ], PluginConfig::$board_tax );
     63            $qv[ 'tax_query' ] = array(
     64                'relation' => 'AND',
     65                array(
     66                    'taxonomy' => PluginConfig::$board_tax,
     67                    'field'    => 'name',
     68                    'terms'    => $term->slug
     69                )
     70            );
     71        }
    4672    }
    4773
  • idea-board/trunk/src/ideapeople/board/Rewrite.php

    r1496865 r1497423  
    6868
    6969        $paged       = get_query_var( 'paged' );
    70         $searchType  = get_query_var( 'searchType', Request::getParameter( 'searchType', false ) );
    71         $searchValue = get_query_var( 'searchValue', Request::getParameter( 'searchValue', false ) );
    72         $category    = get_query_var( 'idea_board_category', Request::getParameter( 'idea_board_category', false ) );
     70        $searchType  = get_query_var( 'searchType', Request::get_parameter( 'searchType', false ) );
     71        $searchValue = get_query_var( 'searchValue', Request::get_parameter( 'searchValue', false ) );
     72        $category    = get_query_var( 'idea_board_category', Request::get_parameter( 'idea_board_category', false ) );
    7373
    7474        $args = array(
  • idea-board/trunk/src/ideapeople/board/Roles.php

    r1497350 r1497423  
    3030    }
    3131
    32     /**
    33      * 플러그인이 시작되면 관리자에게 최고 권한을 준다.
    34      */
    3532    public function add_role_caps() {
    3633        $roles     = array( PluginConfig::$board_admin_role, 'administrator' );
  • idea-board/trunk/src/ideapeople/board/action/CommentAction.php

    r1496664 r1497423  
    8282        do_action( 'idea_board_action_comment_delete_pre', $comment_ID );
    8383
    84         $return_url = Request::getParameter( 'return_url', wp_get_referer() );
     84        $return_url = Request::get_parameter( 'return_url', wp_get_referer() );
    8585
    8686        $view = apply_filters( 'pre_cap_check_comment_view', null, $comment_ID );
  • idea-board/trunk/src/ideapeople/board/action/FileAction.php

    r1496843 r1497423  
    4747
    4848        $max_upload_cnt = Setting::get_max_upload_cnt( $board->term_id );
    49         $count          = count( $idea_upload_attach ) + count( Request::getFiles( 'files', false, false ) );
     49        $count          = count( $idea_upload_attach ) + count( Request::get_files( 'files', false, false ) );
    5050
    5151        if ( $max_upload_cnt ) {
     
    5555        }
    5656
    57         $files = Request::getFiles( 'files' );
     57        $files = Request::get_files( 'files' );
    5858
    5959        foreach ( $files as $file ) {
     
    8888    public function delete_attach_redirect( $attach_id = null ) {
    8989        if ( empty( $attach_id ) ) {
    90             $attach_id = Request::getParameter( 'attach_id' );
     90            $attach_id = Request::get_parameter( 'attach_id' );
    9191        }
    9292
    9393        $this->delete_attach( $attach_id );
    9494
    95         $return_url = Request::getParameter( 'return_url' );
     95        $return_url = Request::get_parameter( 'return_url' );
    9696
    9797        wp_redirect( $return_url );
  • idea-board/trunk/src/ideapeople/board/action/PostAction.php

    r1496785 r1497423  
    3939
    4040        $post_data = wp_parse_args( $post_data, array(
    41             'post_content' => Request::getParameter( 'idea_board_post_content' ),
    42             'post_parent'  => Request::getParameter( 'parent', 0 )
     41            'post_content' => Request::get_parameter( 'idea_board_post_content' ),
     42            'post_parent'  => Request::get_parameter( 'parent', 0 )
    4343        ) );
    4444
     
    5555        $error      = new \WP_Error();
    5656        $post_id    = ! empty( $post_data[ 'ID' ] ) ? $post_data[ 'ID' ] : $post_data[ 'pid' ];
    57         $return_url = Request::getParameter( 'return_url', null );
     57        $return_url = Request::get_parameter( 'return_url', null );
    5858        $nonce      = $post_data[ PluginConfig::$idea_board_edit_nonce_name ];
    5959
  • idea-board/trunk/src/ideapeople/util/common/Utils.php

    r1496702 r1497423  
    8080    }
    8181
    82     static function getVar( $target, $key, $defaultValue = null, $trim = false ) {
     82    static function get_value( $target, $key, $defaultValue = null, $trim = false ) {
    8383        if ( is_null( $target ) ) {
    8484            return $defaultValue;
  • idea-board/trunk/src/ideapeople/util/http/Request.php

    r1496664 r1497423  
    2323     * @return bool|null|mixed
    2424     */
    25     static function getParameter( $key, $defaultValue = null, $method = self::METHOD_REQUEST ) {
     25    static function get_parameter( $key, $defaultValue = null, $method = self::METHOD_REQUEST ) {
    2626        if ( $method == self::METHOD_REQUEST ) {
    27             return Utils::getVar( $_REQUEST, $key, $defaultValue );
     27            return Utils::get_value( $_REQUEST, $key, $defaultValue );
    2828        }
    2929
    3030        if ( $method == self::METHOD_POST ) {
    31             return Utils::getVar( $_POST, $key, $defaultValue );
     31            return Utils::get_value( $_POST, $key, $defaultValue );
    3232        }
    3333
    3434        if ( $method == self::METHOD_GET ) {
    35             return Utils::getVar( $_GET, $key, $defaultValue );
     35            return Utils::get_value( $_GET, $key, $defaultValue );
    3636        }
    3737
     
    3939    }
    4040
    41     static function getParameterPost( $key, $defaultValue = null ) {
    42         return self::getParameter( $key, $defaultValue, self::METHOD_POST );
     41    static function get_parameter_post( $key, $defaultValue = null ) {
     42        return self::get_parameter( $key, $defaultValue, self::METHOD_POST );
    4343    }
    4444
    45     static function getParameterGet( $key, $defaultValue = null ) {
    46         return self::getParameter( $key, $defaultValue, self::METHOD_GET );
     45    static function get_parameter_get( $key, $defaultValue = null ) {
     46        return self::get_parameter( $key, $defaultValue, self::METHOD_GET );
    4747    }
    4848
    49     static function getFiles( $name, $single = false, $include_empty = true ) {
     49    static function get_files( $name, $single = false, $include_empty = true ) {
    5050        $keys   = array( 'name', 'type', 'tmp_name', 'error', 'size' );
    5151        $result = array();
    5252
    53         if ( ! is_array( @ $_FILES[ $name ]['name'] ) ) {
     53        if ( ! is_array( @ $_FILES[ $name ][ 'name' ] ) ) {
    5454            $v = array();
    5555
     
    5858            }
    5959
    60             if ( empty( $v['name'] ) && ! $include_empty ) {
     60            if ( empty( $v[ 'name' ] ) && ! $include_empty ) {
    6161
    6262            } else {
     
    6464            }
    6565        } else {
    66             $count = count( @$_FILES[ $name ]['name'] );
     66            $count = count( @$_FILES[ $name ][ 'name' ] );
    6767
    6868            for ( $i = 0; $i < $count; $i ++ ) {
     
    7373                }
    7474
    75                 if ( empty( $v['name'] ) && ! $include_empty ) {
     75                if ( empty( $v[ 'name' ] ) && ! $include_empty ) {
    7676
    7777                } else {
     
    8282
    8383        if ( $single && ! empty( $result ) ) {
    84             return $result[0];
     84            return $result[ 0 ];
    8585        }
    8686
     
    9494    }
    9595
    96     static function getRequestMethod() {
    97         return $_SERVER['REQUEST_METHOD'];
     96    static function get_request_method() {
     97        return $_SERVER[ 'REQUEST_METHOD' ];
    9898    }
    9999
    100     static function isGET() {
    101         return self::getRequestMethod() == 'GET';
     100    static function is_get() {
     101        return self::get_request_method() == 'GET';
    102102    }
    103103
    104     static function isPost() {
    105         return self::getRequestMethod() == 'POST';
     104    static function is_post() {
     105        return self::get_request_method() == 'POST';
    106106    }
    107107
    108     static function isPut() {
    109         return self::getRequestMethod() == 'PUT';
     108    static function is_put() {
     109        return self::get_request_method() == 'PUT';
    110110    }
    111111
    112     static function isDelete() {
    113         return self::getRequestMethod() == 'DELETE';
     112    static function is_delete() {
     113        return self::get_request_method() == 'DELETE';
    114114    }
    115115
    116     static function isConnect() {
    117         return self::getRequestMethod() == 'CONNECT';
     116    static function is_connect() {
     117        return self::get_request_method() == 'CONNECT';
    118118    }
    119119
     
    121121        $arr = parse_url( $url );
    122122
    123         $port = @$arr['port'];
     123        $port = @$arr[ 'port' ];
    124124
    125125        return "{$arr['scheme']}:{$port}//{$arr['host']}{$arr['path']}";
     
    127127
    128128
    129     static function getUrlPrefix( $url ) {
     129    static function get_url_prefix( $url ) {
    130130        if ( strpos( $url, '?' ) === false ) {
    131131            return '?';
     
    136136
    137137
    138     static function getCurrentUrl() {
     138    static function get_current_url() {
    139139        $url = '';
    140140
    141         if ( isset( $_SERVER['HTTPS'] ) && filter_var( $_SERVER['HTTPS'], FILTER_VALIDATE_BOOLEAN ) ) {
     141        if ( isset( $_SERVER[ 'HTTPS' ] ) && filter_var( $_SERVER[ 'HTTPS' ], FILTER_VALIDATE_BOOLEAN ) ) {
    142142            $url .= 'https';
    143143        } else {
     
    147147        $url .= '://';
    148148
    149         if ( isset( $_SERVER['HTTP_HOST'] ) ) {
    150             $url .= $_SERVER['HTTP_HOST'];
    151         } elseif ( isset( $_SERVER['SERVER_NAME'] ) ) {
    152             $url .= $_SERVER['SERVER_NAME'];
     149        if ( isset( $_SERVER[ 'HTTP_HOST' ] ) ) {
     150            $url .= $_SERVER[ 'HTTP_HOST' ];
     151        } elseif ( isset( $_SERVER[ 'SERVER_NAME' ] ) ) {
     152            $url .= $_SERVER[ 'SERVER_NAME' ];
    153153        } else {
    154154            trigger_error( 'Could not get URL from $_SERVER vars' );
    155155        }
    156156
    157         if ( $_SERVER['SERVER_PORT'] != '80' ) {
    158             $url .= ':' . $_SERVER["SERVER_PORT"];
     157        if ( $_SERVER[ 'SERVER_PORT' ] != '80' ) {
     158            $url .= ':' . $_SERVER[ "SERVER_PORT" ];
    159159        }
    160160
    161         if ( isset( $_SERVER['REQUEST_URI'] ) ) {
    162             $url .= $_SERVER['REQUEST_URI'];
    163         } elseif ( isset( $_SERVER['PHP_SELF'] ) ) {
    164             $url .= $_SERVER['PHP_SELF'];
    165         } elseif ( isset( $_SERVER['REDIRECT_URL'] ) ) {
    166             $url .= $_SERVER['REDIRECT_URL'];
     161        if ( isset( $_SERVER[ 'REQUEST_URI' ] ) ) {
     162            $url .= $_SERVER[ 'REQUEST_URI' ];
     163        } elseif ( isset( $_SERVER[ 'PHP_SELF' ] ) ) {
     164            $url .= $_SERVER[ 'PHP_SELF' ];
     165        } elseif ( isset( $_SERVER[ 'REDIRECT_URL' ] ) ) {
     166            $url .= $_SERVER[ 'REDIRECT_URL' ];
    167167        } else {
    168168            trigger_error( 'Could not get URL from $_SERVER vars' );
  • idea-board/trunk/src/ideapeople/util/wp/BlockFileUtils.php

    r1496845 r1497423  
    4646
    4747    public function ajax_action() {
    48         $attach_id = Request::getParameter( 'attach_id' );
     48        $attach_id = Request::get_parameter( 'attach_id' );
    4949
    5050        if ( ! $attach_id ) {
     
    165165
    166166    public function request_upload( $param_name, $convert_attached = false ) {
    167         $files = Request::getFiles( $param_name );
     167        $files = Request::get_files( $param_name );
    168168
    169169        $results = array();
  • idea-board/trunk/src/ideapeople/util/wp/Options.php

    r1496664 r1497423  
    4040        $options = $this->get_options();
    4141
    42         return Utils::getVar( $options, $key, $defaultValue );
     42        return Utils::get_value( $options, $key, $defaultValue );
    4343    }
    4444
  • idea-board/trunk/src/ideapeople/util/wp/PluginLoader.php

    r1496664 r1497423  
    5656     *
    5757     * @param    string $hook The name of the WordPress filter that is being registered.
    58      * @param    object $component A reference to the instance of the object on which the filter is defined.
     58     * @param    object|string $component A reference to the instance of the object on which the filter is defined.
    5959     * @param    string $callback The name of the function definition on the $component.
    6060     * @param    int $priority Optional. he priority at which the function should be fired. Default is 10.
  • idea-board/trunk/src/ideapeople/util/wp/WpNoprivUploader.php

    r1496915 r1497423  
    5656
    5757    public function action_upload_media() {
    58         $files = Request::getFiles( $this->file_param );
     58        $files = Request::get_files( $this->file_param );
    5959
    6060        $error = new WP_Error();
  • idea-board/trunk/views/skin/board/basic/edit.php

    r1496865 r1497423  
    3232$page_permalink = CommonUtils::get_post_page_link();
    3333
    34 $parent = Request::getParameter( 'parent', 0 );
     34$parent = Request::get_parameter( 'parent', 0 );
    3535
    3636$action_url = Rewrite::edit_ajax_link();
Note: See TracChangeset for help on using the changeset viewer.