Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. 110d109
  2. < $network_domain =(isset($_POST['network_domain']) ? $_POST['network_domain'] : $current_site->domain);
  3. 119c118
  4. < $msg = $this->copy_blog( $domain, $title, $from_blog_id, $copy_files, $network_domain );
  5. ---
  6. > $msg = $this->copy_blog( $domain, $title, $from_blog_id, $copy_files );
  7. 166,189c165,166
  8. < <?php if( is_subdomain_install() ) {
  9. < $network_domains = get_site_option( 'md_domains' );
  10. < ?>
  11. < <input name="blog[domain]" type="text" title="<?php _e( 'Subdomain', $this->_domain ); ?>" class="regular-text"/>.<?php
  12. < if(count($network_domains) > 0)
  13. < {
  14. < $sorted_domains = array();
  15. < foreach ($network_domains as $network_domain) {
  16. < $sorted_domains[] = $network_domain['domain_name'];
  17. < }
  18. < asort($sorted_domains);
  19. < echo "<select name='network_domain' id='network_domain'>";
  20. < foreach($sorted_domains as $network_domain)
  21. < {
  22. < $selected = ($network_domain == $current_site->domain ? "selected" : "");
  23. < echo "<option value='{$network_domain}' $selected>{$network_domain}</option>";
  24. < }
  25. < echo "</select>";
  26. < }
  27. < else
  28. < {
  29. < echo $current_site->domain;
  30. < }
  31. < ?>
  32. ---
  33. > <?php if( is_subdomain_install() ) { ?>
  34. > <input name="blog[domain]" type="text" title="<?php _e( 'Subdomain', $this->_domain ); ?>" class="regular-text"/>.<?php echo $current_site->domain;?>
  35. 229c206
  36. < public function copy_blog($domain, $title, $from_blog_id = 0, $copy_files = true, $network_domain = false) {
  37. ---
  38. > public function copy_blog($domain, $title, $from_blog_id = 0, $copy_files = true) {
  39. 242,243c219
  40. < $top_doman = ($network_domain ? $network_domain : $current_site->domain);
  41. < $newdomain = $domain.".".$top_doman;
  42. ---
  43. > $newdomain = $domain.".".$current_site->domain;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement