Completed
Pull Request — develop (#1245)
by
unknown
07:55
created
modules_v3/custom_js/module.php 1 patch
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -41,23 +41,23 @@  discard block
 block discarded – undo
41 41
 	// Extend WT_Module
42 42
 	public function modAction($mod_action) {
43 43
 		switch ($mod_action) {
44
-			case 'admin_config':
45
-				$controller = new PageController;
46
-				$controller
47
-					->restrictAccess(Auth::isAdmin())
48
-					->setPageTitle($this->getTitle())
49
-					->pageHeader()
50
-					->addInlineJavascript('
44
+		case 'admin_config':
45
+			$controller = new PageController;
46
+			$controller
47
+				->restrictAccess(Auth::isAdmin())
48
+				->setPageTitle($this->getTitle())
49
+				->pageHeader()
50
+				->addInlineJavascript('
51 51
 						jQuery("head").append("<style type=\"text/css\">h2, button {margin-left:15px}</style>");
52 52
 					');
53 53
 
54
-				if (Filter::postBool('save') && Filter::checkCsrf()) {
55
-					$this->setPreference('CJS_FOOTER', Filter::post('NEW_CJS_FOOTER'));
56
-					Log::addConfigurationLog($this->getTitle() . ' config updated');
57
-				}
54
+			if (Filter::postBool('save') && Filter::checkCsrf()) {
55
+				$this->setPreference('CJS_FOOTER', Filter::post('NEW_CJS_FOOTER'));
56
+				Log::addConfigurationLog($this->getTitle() . ' config updated');
57
+			}
58 58
 
59
-				$CJS_FOOTER = $this->getPreference('CJS_FOOTER');
60
-				?>
59
+			$CJS_FOOTER = $this->getPreference('CJS_FOOTER');
60
+			?>
61 61
 				<ol class="breadcrumb small">
62 62
 					<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
63 63
 					<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
 					</button>
79 79
 				</form>
80 80
 				<?php
81
-				break;
81
+			break;
82 82
 
83
-			default:
84
-				http_response_code(404);
85
-				break;
83
+		default:
84
+			http_response_code(404);
85
+			break;
86 86
 		}
87 87
 	}
88 88
 
Please login to merge, or discard this patch.