mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Cosmetics: s/Itterate/Iterate/
This commit is contained in:
parent
a80c969202
commit
101f4a047a
7 changed files with 8 additions and 8 deletions
|
@ -299,7 +299,7 @@ switch ($_REQUEST['action']) {
|
||||||
|
|
||||||
$catalogs = $_REQUEST['catalogs'] ? $_REQUEST['catalogs'] : Catalog::get_catalogs();
|
$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) {
|
foreach ($catalogs as $catalog_id) {
|
||||||
$catalog = new Catalog($catalog_id);
|
$catalog = new Catalog($catalog_id);
|
||||||
require Config::get('prefix') . '/templates/show_gather_art.inc.php';
|
require Config::get('prefix') . '/templates/show_gather_art.inc.php';
|
||||||
|
|
|
@ -1183,7 +1183,7 @@ class Catalog extends database_object {
|
||||||
Error::display('general');
|
Error::display('general');
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
// itterate the songs we retrieved and insert them
|
// iterate the songs we retrieved and insert them
|
||||||
foreach ($songs as $data) {
|
foreach ($songs as $data) {
|
||||||
if (!$this->insert_remote_song($data['song'])) {
|
if (!$this->insert_remote_song($data['song'])) {
|
||||||
debug_event('REMOTE_INSERT','Remote Insert failed, see previous log messages -' . $data['song']['self']['id'],'1');
|
debug_event('REMOTE_INSERT','Remote Insert failed, see previous log messages -' . $data['song']['self']['id'],'1');
|
||||||
|
|
|
@ -487,7 +487,7 @@ class Dba {
|
||||||
$sql = "ALTER TABLE `" . $row['0'] . "` DEFAULT CHARACTER SET $target_charset COLLATE $target_collation";
|
$sql = "ALTER TABLE `" . $row['0'] . "` DEFAULT CHARACTER SET $target_charset COLLATE $target_collation";
|
||||||
$alter_table = Dba::write($sql);
|
$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)) {
|
while ($table = Dba::fetch_assoc($describe_results)) {
|
||||||
if (
|
if (
|
||||||
(strpos($table['Type'], 'varchar') !== false) ||
|
(strpos($table['Type'], 'varchar') !== false) ||
|
||||||
|
|
|
@ -344,7 +344,7 @@ class Democratic extends Tmp_Playlist {
|
||||||
*/
|
*/
|
||||||
public function add_vote($items) {
|
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) {
|
foreach ($items as $element) {
|
||||||
$type = array_shift($element);
|
$type = array_shift($element);
|
||||||
$object_id = array_shift($element);
|
$object_id = array_shift($element);
|
||||||
|
|
|
@ -107,7 +107,7 @@ class Flag extends database_object {
|
||||||
$results[$row['object_id']] = $row;
|
$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) {
|
foreach ($ids as $id) {
|
||||||
parent::add_to_cache('flagged_' . $type,$id,$results[$id]);
|
parent::add_to_cache('flagged_' . $type,$id,$results[$id]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -474,7 +474,7 @@ class Tag extends database_object {
|
||||||
|
|
||||||
$results = '';
|
$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) {
|
foreach ($tags as $tag_id=>$value) {
|
||||||
$tag = new Tag($tag_id);
|
$tag = new Tag($tag_id);
|
||||||
$tag->format($type,$element_id);
|
$tag->format($type,$element_id);
|
||||||
|
|
|
@ -91,7 +91,7 @@ switch ($_REQUEST['action']) {
|
||||||
if (!$playlist_id) { break; }
|
if (!$playlist_id) { break; }
|
||||||
$playlist = new Playlist($playlist_id);
|
$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) {
|
foreach ($objects as $object_data) {
|
||||||
// For now only allow songs on here, we'll change this later
|
// For now only allow songs on here, we'll change this later
|
||||||
$type = array_shift($object_data);
|
$type = array_shift($object_data);
|
||||||
|
@ -122,7 +122,7 @@ switch ($_REQUEST['action']) {
|
||||||
|
|
||||||
$songs = array();
|
$songs = array();
|
||||||
|
|
||||||
// Itterate through and add them to our new playlist
|
// Iterate through and add them to our new playlist
|
||||||
foreach ($objects as $element) {
|
foreach ($objects as $element) {
|
||||||
$type = array_shift($element);
|
$type = array_shift($element);
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue