Here's a few bugs I've come across and fixes...
Open g2helper.inc
Find:Code: › $phpbbDefaultGroups = array('"GUESTS"', '"INACTIVE"', '"INACTIVE_COPPA"', '"REGISTERED"', '"REGISTERED_COPPA"', '"SUPER_MODERATORS"', '"ADMINISTRATORS"', '"BOTS"');
Replace with:Code: › $phpbbDefaultGroups = array('"GUESTS"', '"INACTIVE"', '"INACTIVE_COPPA"', '"REGISTERED"', '"REGISTERED_COPPA"', '"GLOBAL_MODERATORS"', '"ADMINISTRATORS"', '"BOTS"');
Find:Code: › elseif (isset($ret) && $ret->getErrorCode() & ERROR_MISSING_OBJECT) {
/*
* Group already exists in gallery, so do nothing!
Replace with:Code: › elseif (isset($ret)) {
/*
* Group already exists in gallery, so do nothing!
Open includes/acp/acp_gallery2.php
Find: (this removes the commented section and fixes an issue with double $ at versionData[0]Code: › /* if ($fp = @fopen($this->_integrationVersionUrl, 'r')) {
$versionData = fread($fp, 4096);
fclose($fp);
$versionData = explode("\n", $versionData);
$integrationVersion = explode('.', $this->_integrationVersion);
if ($$versionData[0] == $integrationVersion[0] && $versionData[1] == $integrationVersion[1] && $versionData[2] == $integrationVersion[2]) {
$versionText = $user->lang['GALLERY2_TO_DATE'];
}
else {
$versionText = sprintf($user->lang['GALLERY2_NOT_TO_DATE'], "$versionData[0].$versionData[1].$versionData[2]") . sprintf($user->lang['GALLERY2_VIEW_CHANGES'], $this->_integrationChangeLog, $this->_integrationDownload);
}
}
else {
$versionText = sprintf($user->lang['GALLERY2_URL_FAILED'], $this->_integrationVersionUrl);
}
*/
Replace with:Code: › if ($fp = @fopen($this->_integrationVersionUrl, 'r')) {
$versionData = fread($fp, 4096);
fclose($fp);
$versionData = explode("\n", $versionData);
$integrationVersion = explode('.', $this->_integrationVersion);
if ($versionData[0] == $integrationVersion[0] && $versionData[1] == $integrationVersion[1] && $versionData[2] == $integrationVersion[2]) {
$versionText = $user->lang['GALLERY2_TO_DATE'];
}
else {
$versionText = sprintf($user->lang['GALLERY2_NOT_TO_DATE'], "$versionData[0].$versionData[1].$versionData[2]") . sprintf($user->lang['GALLERY2_VIEW_CHANGES'], $this->_integrationChangeLog, $this->_integrationDownload);
}
}
else {
$versionText = sprintf($user->lang['GALLERY2_URL_FAILED'], $this->_integrationVersionUrl);
}