]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Replaced calls to deprecated elgg_validate_action_url() with elgg_add_action_tokens_t...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 15 Mar 2010 14:56:55 +0000 (14:56 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 15 Mar 2010 14:56:55 +0000 (14:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5406 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/reportedcontent/views/default/reportedcontent/listing.php
mod/sitepages/start.php
views/default/output/confirmlink.php
views/default/output/url.php

index 54ebd6a277182cf1659aab90b52439dac23c4bdc..99069cb8cadb56e32eb8e4ce7af435fad57ba27d 100644 (file)
@@ -30,8 +30,8 @@ if($vars['entity']){
         echo "<div class='admin_settings reported_content {$reportedcontent_background}'>";
         echo "<div class='clearfloat controls'>";
         if($report->state != 'archived')
-                 echo "<a class='action_button' href=\"" . elgg_validate_action_url($vars['url'] . "action/reportedcontent/archive?item={$report->guid}") . "\">" . elgg_echo('reportedcontent:archive') . "</a>";
-        echo "<a class='action_button disabled' href=\"" . elgg_validate_action_url($vars['url'] . "action/reportedcontent/delete?item={$report->guid}") . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "</a></div>";
+                 echo "<a class='action_button' href=\"" . elgg_add_action_tokens_to_url($vars['url'] . "action/reportedcontent/archive?item={$report->guid}") . "\">" . elgg_echo('reportedcontent:archive') . "</a>";
+        echo "<a class='action_button disabled' href=\"" . elgg_add_action_tokens_to_url($vars['url'] . "action/reportedcontent/delete?item={$report->guid}") . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "</a></div>";
         echo "<p><b>" . elgg_echo('reportedcontent:by') . ": </b><a href=\"{$user_url}\">" . $user . "</a>, " . friendly_time($report->time_created) . "</p>";
         echo "<p><b>" . elgg_echo('reportedcontent:objecttitle') . ": </b>" . $report->title;
                echo "<br /><a onclick=\"elgg_slide_toggle(this,'.reported_content','.container{$id}');\" class='details_link'>" . elgg_echo('reportedcontent:moreinfo') . "</a></p>";
index 5be36842a4c8a790d5a0a433edb6c9786f7979c4..c7baa13140c44a3ace6d98b8b6c08c01aee84770 100644 (file)
@@ -13,6 +13,7 @@
  *
  * @todo
  *     Check for SQL injection problems.
+ *     Force [[login_box]] in the logged out view.
  *     Make sure this stuff doesn't show up in search.
  *     Check entity keyword views against fullview.  Force to FALSE?
  *     DRY up actions and views
index 9377426ad62b517e05d8f807d5b89124088570bd..c4c0e0bfa7cd937b047bdf0caffc16138d76413c 100644 (file)
@@ -20,7 +20,7 @@ if (!$confirm) {
 }
 
 // always generate missing action tokens
-$link = elgg_validate_action_url($vars['href']);
+$link = elgg_add_action_tokens_to_url($vars['href']);
 
 if (isset($vars['class']) && $vars['class']) {
        $class = 'class="' . $vars['class'] . '"';
@@ -28,4 +28,4 @@ if (isset($vars['class']) && $vars['class']) {
        $class = '';
 }
 ?>
-<a href="<?php echo $link; ?>" <?php echo $class; ?> onclick="return confirm('<?php echo addslashes($confirm); ?>');"><?php echo htmlentities($vars['text'], ENT_QUOTES, 'UTF-8'); ?></a>
\ No newline at end of file
+<a href="<?php echo $link; ?>" <?php echo $class; ?> onclick="return confirm('<?php echo addslashes($confirm); ?>');"><?php echo htmlentities($vars['text'], ENT_QUOTES, 'UTF-8'); ?></a>
index b77ffbf00f6685794d4e7d7c3e14fff9a061f2ea..734df2c19d3940093a7738e7392e4ab68175f30b 100644 (file)
@@ -21,7 +21,7 @@ $url = trim($vars['href']);
 
 if (!empty($url)) {
        if (array_key_exists('is_action', $vars) && $vars['is_action']) {
-               $url = elgg_validate_action_url($url);
+               $url = elgg_add_action_tokens_to_url($url);
        }
 
        if (array_key_exists('target', $vars) && $vars['target']) {