SimpleDesk

SimpleDesk! => SimpleDesk Tracker => Topic started by: wintstar on December 12, 2015, 05:55:04 AM

Title: [Fixed] Missing variable in Subs-SimpleDeskPackages.php
Post by: wintstar on December 12, 2015, 05:55:04 AM
In Subs-SimpleDeskPackages.php missing variable
$scripturl
$txt
$packages

find
Code (php) Select
function shd_packages_sort_id(&$sort_id, &$packages)
{
    global $context;

replaces with
Code (php) Select
function shd_packages_sort_id(&$sort_id, &$packages)
{
    global $context, $packages;


find
Code (php) Select
function shd_package_download()
{
    global $context;

replaces with
Code (php) Select
function shd_package_download()
{
    global $context, $scripturl, $txt;


find
Code (php) Select
function shd_package_upload()
{
    global $context;

replace with
Code (php) Select
function shd_package_upload()
{
    global $context, $scripturl, $txt;
Title: Re: Missing variable in Subs-SimpleDeskPackages.php
Post by: SleePy on December 13, 2015, 06:55:40 PM
All done.  I submitted this for you: https://www.simpledesk.net/community/index.php?topic=2184

Hopefully that helps give a picture of how to work with Git and GitHub.