Completed
Push — develop ( 59b61c...c9dc58 )
by Seth
13:47
created
common.inc.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
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 18
 $toolbox =& $_SESSION[Toolbox::class];
19 19
 if (php_sapi_name() !== 'cli') {
20
-    $toolbox->smarty_prependTemplateDir(__DIR__ . '/templates', basename(__DIR__));
21
-    $toolbox->smarty_assign([
22
-        'category' => DataUtilities::titleCase(preg_replace('/[\-_]+/', ' ', basename(__DIR__)))
23
-    ]);
24
-     $smarty =& $toolbox->getSmarty(); // FIXME
20
+	$toolbox->smarty_prependTemplateDir(__DIR__ . '/templates', basename(__DIR__));
21
+	$toolbox->smarty_assign([
22
+		'category' => DataUtilities::titleCase(preg_replace('/[\-_]+/', ' ', basename(__DIR__)))
23
+	]);
24
+	 $smarty =& $toolbox->getSmarty(); // FIXME
25 25
 }
26 26
 
27 27
 /*
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 
34 34
 /* set the Tool Consumer's instance URL, if present */
35 35
 if (empty($_SESSION[CANVAS_INSTANCE_URL])) {
36
-    if (!empty($_SESSION[ToolProvider::class]['canvas']['api_domain'])) {
37
-        $_SESSION[CANVAS_INSTANCE_URL] = 'https://' . $_SESSION[ToolProvider::class]['canvas']['api_domain'];
38
-    } else {
39
-        $_SESSION[CANVAS_INSTANCE_URL] = $toolbox->config('TOOL_CANVAS_API')['url'];
40
-    }
36
+	if (!empty($_SESSION[ToolProvider::class]['canvas']['api_domain'])) {
37
+		$_SESSION[CANVAS_INSTANCE_URL] = 'https://' . $_SESSION[ToolProvider::class]['canvas']['api_domain'];
38
+	} else {
39
+		$_SESSION[CANVAS_INSTANCE_URL] = $toolbox->config('TOOL_CANVAS_API')['url'];
40
+	}
41 41
 }
Please login to merge, or discard this patch.