News:

Looking for a good read? Check out the SimpleDesk Team Blog.

Main Menu

Topic solved
This topic is marked as solved and as such require no attention unless you want to bump this issue.

[Fixed] Missing variable in Subs-SimpleDeskPackages.php

Started by wintstar, December 12, 2015, 05:55:04 AM

Previous topic - Next topic

wintstar

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;

SleePy

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.
Jeremy D — Spare-Developer