Permalink
Browse files

Removed unused $user from createPulldown() calls.

  • Loading branch information...
1 parent e69c922 commit e85098f5a067cd53367d79e71b29d109d5690ee8 @jeroenrnl committed Jul 9, 2013
Showing with 7 additions and 10 deletions.
  1. +1 −3 php/classes/TimeZone.inc.php
  2. +1 −1 php/edit_photo.inc.php
  3. +2 −3 php/edit_photos.php
  4. +2 −2 php/edit_place.inc.php
  5. +1 −1 php/search.php
View
4 php/classes/TimeZone.inc.php
@@ -94,12 +94,10 @@ public static function getKey($tz) {
* Create Pulldown menu for timezone selection
* @param string name for the html document
* @param string current value
- * @param user not used, for compatibility with createPulldown functions
- * in other objects
* @return string HTML code to display pulldown
* @todo Returns HTML!
*/
- public static function createPulldown($name, $value=null, $user=null) {
+ public static function createPulldown($name, $value=null) {
$id=preg_replace("/^_+/", "", $name);
if($value) {
$text=$value;
View
2 php/edit_photo.inc.php
@@ -113,7 +113,7 @@
<?php echo create_text_input("title", $photo->get("title"), 40, 64) ?>
<span class="inputhint"><?php echo sprintf(translate("%s chars max"), "64") ?></span><br>
<label for="_location_id"><?php echo translate("location") ?></label>
-<?php echo place::createPulldown("location_id", $photo->get("location_id"), $user); ?>
+<?php echo place::createPulldown("location_id", $photo->get("location_id")); ?>
<br>
<fieldset class="map">
<legend><?php echo translate("map") ?></legend>
View
5 php/edit_photos.php
@@ -144,8 +144,7 @@
<?php echo create_text_input("__time__all", "", 10, 8, "time") ?>
<span class="inputhint">HH:MM:SS</span><br>
<label for="location_id__all"><?php echo translate("location") ?></label>
- <?php echo place::createPulldown("__location_id__all", null, $user,
- $places_select_array) ?>
+ <?php echo place::createPulldown("__location_id__all") ?>
<br>
<label for="photographer_id__all"><?php echo translate("photographer") ?></label>
<?php echo person::createPulldown("__photographer_id__all") ?><br>
@@ -333,7 +332,7 @@
<?php echo translate("location") ?>
</label>
<?php echo place::createPulldown("__location_id__$photo_id",
- $photo->get("location_id"), $user, $places_select_array) ?><br>
+ $photo->get("location_id")) ?><br>
<label for="photographer_id__<?php echo $photo_id?>">
<?php echo translate("photographer") ?>
</label>
View
4 php/edit_place.inc.php
@@ -43,7 +43,7 @@
if($place->isRoot()) {
echo translate("places");
} else {
- echo place::createPulldown("parent_place_id", $place->get("parent_place_id"), $user);
+ echo place::createPulldown("parent_place_id", $place->get("parent_place_id"));
}
?>
<br>
@@ -126,7 +126,7 @@
?>
<label for="timezone_id"><?php echo translate("timezone") ?></label>
- <?php echo TimeZone::createPulldown("timezone_id", $place->get("timezone"), $user); ?>
+ <?php echo TimeZone::createPulldown("timezone_id", $place->get("timezone")); ?>
<label for="notes"><?php echo translate("notes") ?></label>
<textarea name="notes" cols="40" rows="4"><?php echo $place->get("notes") ?></textarea>
View
2 php/search.php
@@ -406,7 +406,7 @@
$_location_id_op[$i]) ?>
</td>
<td colspan="2">
- <?php echo place::createPulldown("location_id[$i]", $location_id[$i], $user); ?>
+ <?php echo place::createPulldown("location_id[$i]", $location_id[$i]); ?>
<br>
<input type="checkbox" name="_location_id_children[<?php echo $i ?>]"
value="yes" <?php echo $checked ?>>

0 comments on commit e85098f

Please sign in to comment.