Skip to content

Conversation

@mrrobot47
Copy link
Member

Signed-off-by: Riddhesh Sanghvi riddheshsanghvi96@gmail.com

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@mrrobot47 mrrobot47 self-assigned this Dec 25, 2018
@mrrobot47 mrrobot47 requested a review from mbtamuli December 25, 2018 06:59
Copy link
Contributor

@mbtamuli mbtamuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grep -irn 'publish' | grep 'EE::'
src/helper/class-ee-site.php:1038:                      EE::error( 'Could not publish site.' );
src/helper/class-ee-site.php:1040:              EE::success( "Successfully shared {$this->site_data->site_url} to url: $published_url" );
src/helper/class-ee-site.php:1112:                      EE::error( 'Could not publish site. Please check logs.' );
src/helper/class-ee-site.php:1118:                      EE::log( 'Disabling publish.' );
src/helper/hooks.php:83:EE::add_hook( 'site_cleanup', 'cleanup_publishing' );

These messages got left behind.

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
$error = $refresh ? '' : "{$this->site_data->site_url} has already been shared. Visit link: $publish_url to view it online.\nNote: This link is only valid for few hours. In case it has expired run: `ee site share {$this->site_data->site_url} --refresh`";
} else {
$error = "$active_publish site is published currently. Publishing of only one site at a time is supported.\nTo publish {$this->site_data->site_url} , first run: `ee site publish $active_publish --disable`";
$error = "$active_publish site is shared currently. Sharing of only one site at a time is supported.\nTo publish {$this->site_data->site_url} , first run: `ee site share $active_publish --disable`";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$error = "$active_publish site is shared currently. Sharing of only one site at a time is supported.\nTo publish {$this->site_data->site_url} , first run: `ee site share $active_publish --disable`";
$error = "$active_publish site is shared currently. Sharing of only one site at a time is supported.\nTo share {$this->site_data->site_url} , first run: `ee site share $active_publish --disable`";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also a publish word in line 1070 @mrrobot47

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@mbtamuli mbtamuli merged commit 8679edf into EasyEngine:develop Dec 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants