Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 110d109
- < $network_domain =(isset($_POST['network_domain']) ? $_POST['network_domain'] : $current_site->domain);
- 119c118
- < $msg = $this->copy_blog( $domain, $title, $from_blog_id, $copy_files, $network_domain );
- ---
- > $msg = $this->copy_blog( $domain, $title, $from_blog_id, $copy_files );
- 166,189c165,166
- < <?php if( is_subdomain_install() ) {
- < $network_domains = get_site_option( 'md_domains' );
- < ?>
- < <input name="blog[domain]" type="text" title="<?php _e( 'Subdomain', $this->_domain ); ?>" class="regular-text"/>.<?php
- < if(count($network_domains) > 0)
- < {
- < $sorted_domains = array();
- < foreach ($network_domains as $network_domain) {
- < $sorted_domains[] = $network_domain['domain_name'];
- < }
- < asort($sorted_domains);
- < echo "<select name='network_domain' id='network_domain'>";
- < foreach($sorted_domains as $network_domain)
- < {
- < $selected = ($network_domain == $current_site->domain ? "selected" : "");
- < echo "<option value='{$network_domain}' $selected>{$network_domain}</option>";
- < }
- < echo "</select>";
- < }
- < else
- < {
- < echo $current_site->domain;
- < }
- < ?>
- ---
- > <?php if( is_subdomain_install() ) { ?>
- > <input name="blog[domain]" type="text" title="<?php _e( 'Subdomain', $this->_domain ); ?>" class="regular-text"/>.<?php echo $current_site->domain;?>
- 229c206
- < public function copy_blog($domain, $title, $from_blog_id = 0, $copy_files = true, $network_domain = false) {
- ---
- > public function copy_blog($domain, $title, $from_blog_id = 0, $copy_files = true) {
- 242,243c219
- < $top_doman = ($network_domain ? $network_domain : $current_site->domain);
- < $newdomain = $domain.".".$top_doman;
- ---
- > $newdomain = $domain.".".$current_site->domain;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement