Skip to content
Browse files

Redirect after updating settings.

  • Loading branch information...
1 parent eddddf0 commit 6e605a809535050de2554dd2f037820c902d63a1 @ckieffer ckieffer committed Feb 14, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 3.1/modules/twitter/controllers/admin_twitter.php
View
5 3.1/modules/twitter/controllers/admin_twitter.php
@@ -32,8 +32,7 @@ public function index() {
$consumer_secret = $form->twitter_oauth->consumer_secret->value;
$reset_tweet = $form->twitter_message->reset_tweet->value;
if ($reset_tweet) {
- $default_tweet = $this->default_tweet;
- $form->twitter_message->default_tweet->value = twitter::reset_default_tweet();
+ $default_tweet = twitter::reset_default_tweet();
} else {
$default_tweet = $form->twitter_message->default_tweet->value;
}
@@ -43,7 +42,9 @@ public function index() {
module::set_var("twitter", "consumer_secret", $consumer_secret);
module::set_var("twitter", "default_tweet", $default_tweet);
module::set_var("twitter", "shorten_urls", $shorten_urls);
+
message::success("Twitter settings saved");
+ url::redirect("admin/twitter");
}
}
$is_registered = twitter::is_registered();

0 comments on commit 6e605a8

Please sign in to comment.
Something went wrong with that request. Please try again.