fix issues after changing codestyle
This commit is contained in:
parent
9ad9088260
commit
9fce3b22aa
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function page_link_to($page) {
|
function page_link_to($page = "") {
|
||||||
if ($page == "") {
|
if ($page == "") {
|
||||||
return '?';
|
return '?';
|
||||||
}
|
}
|
||||||
|
@ -123,9 +123,9 @@ function make_navigation() {
|
||||||
"user_questions" => questions_title()
|
"user_questions" => questions_title()
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($pages as $page => $title) {
|
foreach ($pages as $menu_page => $title) {
|
||||||
if (in_array($page, $privileges)) {
|
if (in_array($menu_page, $privileges)) {
|
||||||
$menu[] = toolbar_item_link(page_link_to($page), '', $title, $page == $page);
|
$menu[] = toolbar_item_link(page_link_to($menu_page), '', $title, $menu_page == $page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,9 +145,9 @@ function make_navigation() {
|
||||||
"admin_event_config" => event_config_title()
|
"admin_event_config" => event_config_title()
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($admin_pages as $page => $title) {
|
foreach ($admin_pages as $menu_page => $title) {
|
||||||
if (in_array($page, $privileges)) {
|
if (in_array($menu_page, $privileges)) {
|
||||||
$admin_menu[] = toolbar_item_link(page_link_to($page), '', $title, $page == $page);
|
$admin_menu[] = toolbar_item_link(page_link_to($menu_page), '', $title, $menu_page == $page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ class ValidationResult {
|
||||||
* The validated value
|
* The validated value
|
||||||
*/
|
*/
|
||||||
public function ValidationResult($valid, $value) {
|
public function ValidationResult($valid, $value) {
|
||||||
$this->ok = $valid;
|
$this->valid = $valid;
|
||||||
$this->value = $value;
|
$this->value = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue