Advertisement
retesere20

--recycler--pma-recplacer-code

Sep 19th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. at that moment, after unpack finished:
  2.  
  3. $this->js_redirect_message(__("Thanks for waiting, finalizing the installation.", "wp-phpmyadmin-extension"));
  4.  
  5.  
  6.  
  7.  
  8. after that, in "is_admin()":
  9.  
  10. // replace occurences p.s. to avoid extra overload time limits, dont do this on the same pageload of installation
  11. if(empty($_POST) && !$is_install && !get_site_option($this->optname_of_replaces)){
  12. add_action('admin_footer', function(){
  13. //rename all occurences if "__(" function exists
  14. if(stripos(file_get_contents($this->conflict_file_1), '__(') !== false){
  15. $this->replace_occurences_in_dir($this->pma_abspath, '__(', '__PMA_TRANSL(' );
  16. }
  17. update_site_option($this->optname_of_replaces,true);
  18. });
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement