Skip to content

Commit 001295f

Browse files
committed
Remove unexact commenting.
1 parent 761ff9f commit 001295f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

web/inc/main.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,7 @@ function render_page($user, $TAB, $page) {
143143

144144
// Extarct global variables
145145
// I think those variables should be passed via arguments
146-
//*
147146
extract($GLOBALS, EXTR_SKIP);
148-
/*/
149-
$variables = array_filter($GLOBALS, function($key){return preg_match('/^(v_|[a-z])[a-z\d]+$/', $key);}, ARRAY_FILTER_USE_KEY);
150-
extract($variables, EXTR_OVERWRITE);
151-
//*/
152147

153148
// Body
154149
if (($_SESSION['user'] !== 'admin') && (@include($__template_dir . "user/$page.html"))) {
@@ -379,4 +374,4 @@ function is_it_mysql_or_mariadb() {
379374
$mysqltype='mysql';
380375
if (isset($data['mariadb'])) $mysqltype='mariadb';
381376
return $mysqltype;
382-
}
377+
}

0 commit comments

Comments
 (0)