Skip to content

Commit

Permalink
Update api_overview.rst
Browse files Browse the repository at this point in the history
Fixed documentation typos in issue #151.
  • Loading branch information
NicHerndon authored Jan 9, 2020
1 parent 35ab225 commit 5ee90f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API/api_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ If a Galaxy server is not accessible no actions can be performed including workf

.. code-block:: php
$is_connected = tripal_galaxy_test_connection(['galaxy_id' => galaxy_id]);
$is_connected = tripal_galaxy_test_connection(['galaxy_id' => $galaxy_id]);
if (!$is_connected) {
// Do something here.
}
Expand Down Expand Up @@ -469,7 +469,7 @@ Once the workflow has completed you may want to provide links for the end-user t
// Now get the Proxy URL and create the link.
$proxy_url = tripal_galaxy_get_proxy_url($submission, $dataset, $uid, 'download');
$link = l($dataset['name'], $proxy_url) . ' (' . $dataset[file_size] . ')';
$link = l($dataset['name'], $proxy_url) . ' (' . $dataset['file_size'] . ')';
The ``$link`` variable now contains an HTML formatted link for downloading the file. It also lists the file size next to the link. You can use this variable anywhere that you create content for a page in your application. Notice that the last argument to the ``tripal_galaxy_get_proxy_url()`` function is the string ``download``. This is the action that the proxy URL should perform.

Expand Down

0 comments on commit 5ee90f0

Please sign in to comment.