1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Cosmetics: s/Itterate/Iterate/

This commit is contained in:
Paul Arthur 2013-01-28 20:24:34 -05:00
parent a80c969202
commit 101f4a047a
7 changed files with 8 additions and 8 deletions

View file

@ -299,7 +299,7 @@ switch ($_REQUEST['action']) {
$catalogs = $_REQUEST['catalogs'] ? $_REQUEST['catalogs'] : Catalog::get_catalogs();
// Itterate throught the catalogs and gather as needed
// Iterate throught the catalogs and gather as needed
foreach ($catalogs as $catalog_id) {
$catalog = new Catalog($catalog_id);
require Config::get('prefix') . '/templates/show_gather_art.inc.php';

View file

@ -1183,7 +1183,7 @@ class Catalog extends database_object {
Error::display('general');
flush();
}
// itterate the songs we retrieved and insert them
// iterate the songs we retrieved and insert them
foreach ($songs as $data) {
if (!$this->insert_remote_song($data['song'])) {
debug_event('REMOTE_INSERT','Remote Insert failed, see previous log messages -' . $data['song']['self']['id'],'1');

View file

@ -487,7 +487,7 @@ class Dba {
$sql = "ALTER TABLE `" . $row['0'] . "` DEFAULT CHARACTER SET $target_charset COLLATE $target_collation";
$alter_table = Dba::write($sql);
// Itterate through the columns of the table
// Iterate through the columns of the table
while ($table = Dba::fetch_assoc($describe_results)) {
if (
(strpos($table['Type'], 'varchar') !== false) ||

View file

@ -344,7 +344,7 @@ class Democratic extends Tmp_Playlist {
*/
public function add_vote($items) {
/* Itterate through the objects if no vote, add to playlist and vote */
/* Iterate through the objects if no vote, add to playlist and vote */
foreach ($items as $element) {
$type = array_shift($element);
$object_id = array_shift($element);

View file

@ -107,7 +107,7 @@ class Flag extends database_object {
$results[$row['object_id']] = $row;
}
// Itterate through the passed ids as we need to cache 'nulls'
// Iterate through the passed ids as we need to cache 'nulls'
foreach ($ids as $id) {
parent::add_to_cache('flagged_' . $type,$id,$results[$id]);
}

View file

@ -474,7 +474,7 @@ class Tag extends database_object {
$results = '';
// Itterate through the tags, format them according to type and element id
// Iterate through the tags, format them according to type and element id
foreach ($tags as $tag_id=>$value) {
$tag = new Tag($tag_id);
$tag->format($type,$element_id);

View file

@ -91,7 +91,7 @@ switch ($_REQUEST['action']) {
if (!$playlist_id) { break; }
$playlist = new Playlist($playlist_id);
// Itterate through and add them to our new playlist
// Iterate through and add them to our new playlist
foreach ($objects as $object_data) {
// For now only allow songs on here, we'll change this later
$type = array_shift($object_data);
@ -122,7 +122,7 @@ switch ($_REQUEST['action']) {
$songs = array();
// Itterate through and add them to our new playlist
// Iterate through and add them to our new playlist
foreach ($objects as $element) {
$type = array_shift($element);
switch ($type) {