CIDI / kennethware-2.0

Tools to facilitate rapid course development in Instructure Canvas.
https://usu.instructure.com/courses/305202
GNU Affero General Public License v3.0
39 stars 29 forks source link

$GLOBALS array? #3

Closed IUeDS-User closed 10 years ago

IUeDS-User commented 10 years ago

In the Template wizard PHP code, there are several references to a $GLOBALS array, for example,

/wizard/resources/wizard_image_crop.php: $GLOBALS['templates'], $GLOBALS['ratios']

/wizard/resources/wizardAPI.php: $GLOBALS['tokenHeader'].

I'm receiving "undefined index" notices in PHP, and I'm not seeing where this array is defined. Am I missing a config somewhere? Thanks...

IUeDS-User commented 10 years ago

Red faced...needed to brush up on my PHP. Found it: http://php.net/manual/en/reserved.variables.globals.php

Looks like there are some new config vars in config-example.php: $templates and $ratios. I was missing these, hence my "missing index" PHP notices. Sorry for the false alarm...