File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1414}
1515
1616// Check package argument
17- if (empty ($ _GET ['package ' ]) || ( $ _GET [ ' package ' ] === ' default ' ) ) {
17+ if (empty ($ _GET ['package ' ])) {
1818 header ("Location: /list/package/ " );
1919 exit ;
2020}
Original file line number Diff line number Diff line change 7777 < div class ="clearfix l-unit__stat-col--left text-right compact-3 ">
7878 < div class ="l-unit-toolbar__col l-unit-toolbar__col--right noselect ">
7979 < div class ="actions-panel clearfix ">
80- < ? if ($key == 'default') { ?>
81- <!-- Restrict editing default package -->
82- < ? } else {?>
83- < div class ="actions-panel__col actions-panel__edit shortcut-enter " key-action ="href "> < a href ="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('Editing Package')?> "> < i class ="fas fa-pencil-alt status-icon orange status-icon dim "> </ i > </ a > </ div >
84- < ? } ?>
85-
80+ < div class ="actions-panel__col actions-panel__edit shortcut-enter " key-action ="href "> < a href ="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('Editing Package')?> "> < i class ="fas fa-pencil-alt status-icon orange status-icon dim "> </ i > </ a > </ div >
8681 < div class ="actions-panel__col actions-panel__edit " key-action ="href "> < a href ="/copy/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('Copy')?> "> < i class ="fas fa-clone status-icon teal status-icon dim "> </ i > </ a > </ div >
8782 < ? if ($key == 'default') { ?>
8883 <!-- Restrict deleting default package -->
You can’t perform that action at this time.
0 commit comments