Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on #2972 Template Conversion to Twig Format (managegroup.php) #3018

Merged
merged 2 commits into from
Feb 16, 2018
Merged

Working on #2972 Template Conversion to Twig Format (managegroup.php) #3018

merged 2 commits into from
Feb 16, 2018

Conversation

Starpaul20
Copy link
Member

#2972 for managegroup.php

managegroup.php Outdated
ORDER BY u.username ASC
");
while ($user = $db->fetch_array($query)) {
$user['reason'] = htmlspecialchars_uni($user['reason']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of htmlspecialchars_uni() here (and perhaps below?) will cause double escaping.

managegroup.php Outdated

if ($usergroup['type'] == 5) {
$usergroup['usergrouptype'] = $lang->group_public_invite;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be } else if (....

managegroup.php Outdated
WHERE g.gid = '{$gid}'
");

$leaders_array = array();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with the below $leaders = [], can you use square brackets here too to initialise the array?

managegroup.php Outdated
$leaders_array[] = $leader['uid'];

// Get commas...
if ($loop != $leader_count) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic could be done in the view itself, using the loop.last variable.

@Starpaul20
Copy link
Member Author

All changes have been made

@euantorano euantorano merged commit 7c88f6a into mybb:develop/1.9 Feb 16, 2018
@Starpaul20 Starpaul20 deleted the develop-1.9-managegroups branch February 16, 2018 14:54
@Starpaul20 Starpaul20 added the b:1.9 Branch: 1.9.x label Feb 18, 2018
euantorano pushed a commit that referenced this pull request Mar 16, 2018
…#3018)

* Working on #2972 Template Conversion to Twig Format (managegroup.php)

* Coding improvements
euantorano pushed a commit to euantorano/mybb that referenced this pull request Mar 23, 2019
…php) (mybb#3018)

* Working on mybb#2972 Template Conversion to Twig Format (managegroup.php)

* Coding improvements
euantorano pushed a commit to euantorano/mybb that referenced this pull request Mar 23, 2019
…php) (mybb#3018)

* Working on mybb#2972 Template Conversion to Twig Format (managegroup.php)

* Coding improvements
euantorano pushed a commit that referenced this pull request Jun 2, 2019
…#3018)

* Working on #2972 Template Conversion to Twig Format (managegroup.php)

* Coding improvements
euantorano pushed a commit that referenced this pull request Jun 2, 2019
…#3018)

* Working on #2972 Template Conversion to Twig Format (managegroup.php)

* Coding improvements
@euantorano euantorano mentioned this pull request Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.9 Branch: 1.9.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants