Dotclear

Changeset 2063:ce9d8e07b76b for inc


Ignore:
Timestamp:
09/24/13 16:12:38 (12 years ago)
Author:
Dsls
Branch:
default
Message:

Added anchor possibility for redirections
updated post.php to handle correctly redirections when changing comments.
See #1717, notifications may be analysed more generally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/actions/class.dcaction.php

    r2055 r2063  
    3434     /** @var array list of $_POST fields used to build the redirection  */ 
    3535     protected $redirect_fields; 
     36     /** @var string redirection anchor if any  */ 
     37     protected $redir_anchor; 
     38 
    3639     /** @var string current action, if any */ 
    3740     protected $action; 
     
    7073          $this->field_entries = 'entries'; 
    7174          $this->caller_title = __('Entries'); 
     75          if (isset($this->redir_args['_ANCHOR'])) { 
     76               $this->redir_anchor = '#'.$this->redir_args['_ANCHOR']; 
     77               unset($this->redir_args['_ANCHOR']); 
     78          } else { 
     79               $this->redir_anchor=''; 
     80          } 
    7281     } 
    7382      
     
    216225               $redir_args[$this->field_entries] = array_keys($this->entries); 
    217226          } 
    218           return $this->uri.'?'.http_build_query($redir_args); 
     227          return $this->uri.'?'.http_build_query($redir_args).$this->redir_anchor; 
    219228     } 
    220229      
Note: See TracChangeset for help on using the changeset viewer.

Sites map