@@ -29,7 +29,7 @@ |
||
29 | 29 | $hacks[$item] = new CanvasHack($sql, $path); |
30 | 30 | } catch (CanvasHack_Exception $e) { |
31 | 31 | $smarty->addMessage( |
32 | - 'CanvasHack Manifest Error ['. $e->getCode() . ']', |
|
32 | + 'CanvasHack Manifest Error [' . $e->getCode() . ']', |
|
33 | 33 | $e->getMessage(), |
34 | 34 | NotificationMessage::ERROR |
35 | 35 | ); |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | |
14 | 14 | /* prepare the toolbox */ |
15 | 15 | if (empty($_SESSION[Toolbox::class])) { |
16 | - $_SESSION[Toolbox::class] =& Toolbox::fromConfiguration(CONFIG_FILE); |
|
16 | + $_SESSION[Toolbox::class] = & Toolbox::fromConfiguration(CONFIG_FILE); |
|
17 | 17 | } |
18 | -$toolbox =& $_SESSION[Toolbox::class]; |
|
18 | +$toolbox = & $_SESSION[Toolbox::class]; |
|
19 | 19 | $toolbox->smarty_prependTemplateDir(__DIR__ . '/templates', basename(__DIR__)); |
20 | 20 | $toolbox->smarty_assign([ |
21 | 21 | 'category' => DataUtilities::titleCase(preg_replace('/[\-_]+/', ' ', basename(__DIR__))) |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | /* |
25 | 25 | * FIXME convience variables until plugins are all updated |
26 | 26 | */ |
27 | - $api =& $toolbox->getAPI(); |
|
28 | - $sql =& $toolbox->getMySQL(); |
|
29 | - $smarty =& $toolbox->getSmarty(); |
|
30 | - $customPrefs =& $toolbox->getCustomPrefs(); |
|
27 | + $api = & $toolbox->getAPI(); |
|
28 | + $sql = & $toolbox->getMySQL(); |
|
29 | + $smarty = & $toolbox->getSmarty(); |
|
30 | + $customPrefs = & $toolbox->getCustomPrefs(); |
|
31 | 31 | |
32 | 32 | /* set the Tool Consumer's instance URL, if present */ |
33 | 33 | if (empty($_SESSION[CANVAS_INSTANCE_URL]) && |