Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- at that moment, after unpack finished:
- $this->js_redirect_message(__("Thanks for waiting, finalizing the installation.", "wp-phpmyadmin-extension"));
- after that, in "is_admin()":
- // replace occurences p.s. to avoid extra overload time limits, dont do this on the same pageload of installation
- if(empty($_POST) && !$is_install && !get_site_option($this->optname_of_replaces)){
- add_action('admin_footer', function(){
- //rename all occurences if "__(" function exists
- if(stripos(file_get_contents($this->conflict_file_1), '__(') !== false){
- $this->replace_occurences_in_dir($this->pma_abspath, '__(', '__PMA_TRANSL(' );
- }
- update_site_option($this->optname_of_replaces,true);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement