phpBB

Code Changes

File: includes/acp/acp_styles.php

  Unmodified   Added   Modified   Removed
Line 398Line 398

// Reset default style for users who use selected styles
$sql = 'UPDATE ' . USERS_TABLE . '


// Reset default style for users who use selected styles
$sql = 'UPDATE ' . USERS_TABLE . '

			SET user_style = 0

			SET user_style = ' . (int) $this->default_style . '

			WHERE user_style IN (' . implode(', ', $ids) . ')';
$this->db->sql_query($sql);


			WHERE user_style IN (' . implode(', ', $ids) . ')';
$this->db->sql_query($sql);


Line 1249Line 1249

// Change default style for users
$sql = 'UPDATE ' . USERS_TABLE . '


// Change default style for users
$sql = 'UPDATE ' . USERS_TABLE . '

			SET user_style = 0

			SET user_style = ' . (int) $this->default_style . '

			WHERE user_style = ' . $id;
$this->db->sql_query($sql);


			WHERE user_style = ' . $id;
$this->db->sql_query($sql);


Line 1355Line 1355
		}

// Hardcoded template bitfield to add for new templates

		}

// Hardcoded template bitfield to add for new templates

 
		$default_bitfield = '1111111111111';


		$bitfield = new bitfield();

		$bitfield = new bitfield();

		$bitfield->set(0);
$bitfield->set(1);
$bitfield->set(2);
$bitfield->set(3);
$bitfield->set(4);
$bitfield->set(8);
$bitfield->set(9);
$bitfield->set(11);
$bitfield->set(12);
$value = $bitfield->get_base64();
return $value;

		for ($i = 0; $i < strlen($default_bitfield); $i++)
{
if ($default_bitfield[$i] == '1')
{
$bitfield->set($i);
}
}

return $bitfield->get_base64();



	}

}

	}

}