Skip to content

Commit

Permalink
fix for publishing via the workspace publish button - removed the nee…
Browse files Browse the repository at this point in the history
…d for the lo to be public before publishing via this route

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@386 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
ronm123 committed Jul 17, 2012
1 parent 18d04c5 commit 8b1401f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions website_code/php/properties/publish.php
Expand Up @@ -75,29 +75,18 @@

}

if($template_access=="Public"){
if($template_access!=""){

/**
*
* This section using $_SESSION['webct'] is for people using the integration option for webct. If you integration option has the ability to post back a URL then you would modify this code to allow for your systems working methods.
*
**/

if(isset($_SESSION['webct'])){

if($_SESSION['webct']=="true"){

$url = urlencode($xerte_toolkits_site->site_url . url_return("play",$tutorial_id));

echo "<p>" . str_replace("~~~URL~~~", $url,str_replace("~~~NAME~~~", str_replace("_", " " ,$row['template_name']),$_SESSION['toolkits_webct_url'])) . "</p>";

}else{

echo "<p><img src=\"website_code/images/Bttn_PublishOff.gif\" onmouseover=\"this.src='website_code/images/Bttn_PublishOn.gif'\" onmouseout=\"this.src='website_code/images/Bttn_PublishOff.gif'\" onmousedown=\"this.src='website_code/images/Bttn_PublishClick.gif'\" onclick=\"publish_project(window.name);\" /></p>";

echo "<p>" . PUBLISH_WEB_ADDRESS . " " . $xerte_toolkits_site->site_url . url_return("play",mysql_real_escape_string($_POST['template_id'])) . "</p>";

}

}

Expand All @@ -107,12 +96,6 @@

}

}else{

echo "<p>" . PUBLISH_FAIL . "</p>";

}

}

?>

0 comments on commit 8b1401f

Please sign in to comment.