Your SlideShare is downloading. ×
3 reasons to contribute to drupal florian loretan (eng)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

3 reasons to contribute to drupal florian loretan (eng)

517
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
517
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 3 Reasons to contribute to Drupal Florian Lorétan Co-Founder Wunderkraut florian.loretan@wunderkraut.comWednesday, June 13, 2012
  • 2. Sponsors Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор
  • 3. добрый деньWednesday, June 13, 2012
  • 4. Я не говорю по РоссииWednesday, June 13, 2012
  • 5. Я говорю DrupalWednesday, June 13, 2012
  • 6. Wednesday, June 13, 2012
  • 7. That’s me!Wednesday, June 13, 2012
  • 8. Wednesday, June 13, 2012
  • 9. Wednesday, June 13, 2012
  • 10. Wednesday, June 13, 2012
  • 11. Who are you?Wednesday, June 13, 2012
  • 12. What is a contribution?Wednesday, June 13, 2012
  • 13. diff --git a/core/includes/common.inc b/core/includes/common.inc index 9d498c2..63a8aec 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -5201,13 +5201,9 @@ function drupal_cron_run() { // Allow execution to continue even if the request gets canceled. @ignore_user_abort(TRUE); - // Prevent session information from being saved while cron is running. - drupal_save_session(FALSE); - // Force the current user to anonymous to ensure consistent permissions on // cron runs. - $original_user = $GLOBALS[user]; - $GLOBALS[user] = drupal_anonymous_user(); + user_impersonate_user(drupal_anonymous_user()); // Try to allocate enough time to run all the hook_cron implementations. drupal_set_time_limit(240); @@ -5263,8 +5259,7 @@ function drupal_cron_run() { } } Restore the user. // - $GLOBALS[user] = $original_user; - drupal_save_session(TRUE); + user_revert_user(); return $return; } diff --git a/core/modules/simpletest/drupal_web_test_case.php b/core/modules/simpletest/drupal_web_test_case.php index 3069268..dfbef9d 100644 --- a/core/modules/simpletest/drupal_web_test_case.php +++ b/core/modules/simpletest/drupal_web_test_case.php @@ -1414,9 +1414,7 @@ class DrupalWebTestCase extends DrupalTestCase { drupal_cron_run(); // Log in with a clean $user. - $this->originalUser = $user; - drupal_save_session(FALSE); - $user = user_load(1); + user_impersonate_user(user_load(1)); // Restore necessary variables. variable_set(install_task, done); @@ -1550,8 +1548,7 @@ class DrupalWebTestCase extends DrupalTestCase { $callbacks = $this->originalShutdownCallbacks; // Return the user to the original one. - $user = $this->originalUser; - drupal_save_session(TRUE); + user_revert_user(); // Ensure that internal logged in variable and cURL options are reset. $this->loggedInUser = FALSE; diff --git a/core/modules/simpletest/tests/common.test b/core/modules/simpletest/tests/common.test 13, 2012Wednesday, June index fee3831..07b0f5b 100644
  • 14. Wednesday, June 13, 2012
  • 15. Wednesday, June 13, 2012
  • 16. Wednesday, June 13, 2012
  • 17. Wednesday, June 13, 2012
  • 18. Wednesday, June 13, 2012
  • 19. Programming Graphic Design Project Management Business System Administration ...Wednesday, June 13, 2012
  • 20. #1 LEARNWednesday, June 13, 2012
  • 21. Wednesday, June 13, 2012
  • 22. The best place to learn to swim...Wednesday, June 13, 2012
  • 23. Wednesday, June 13, 2012
  • 24. Best practicesWednesday, June 13, 2012
  • 25. Become an expertWednesday, June 13, 2012
  • 26. Its better to train your employees and risk they leave, than not training them and risking they stay.Wednesday, June 13, 2012
  • 27. #2 EXCHANGEWednesday, June 13, 2012
  • 28. Testing Reviews Bug reports Patches ...Wednesday, June 13, 2012
  • 29. Testing Testing Reviews ReviewsBug reports Bug reports Patches Patches ... ...
  • 30. “Mathematics is like sex: sure, it may give some practical results, but thats not why we do it.” ― Richard P. FeynmanWednesday, June 13, 2012
  • 31. Open Source “Mathematics is like sex: sure, it may give some practical results, but thats not why we do it.” ― Richard P. FeynmanWednesday, June 13, 2012
  • 32. #3 NETWORKWednesday, June 13, 2012
  • 33. Wednesday, June 13, 2012
  • 34. Jobs Projects Resources Expertise ...Wednesday, June 13, 2012
  • 35. OpportunitiesWednesday, June 13, 2012
  • 36. LEARNWednesday, June 13, 2012
  • 37. LEARN EXCHANGEWednesday, June 13, 2012
  • 38. LEARN EXCHANGEWednesday, June 13, 2012
  • 39. Wednesday, June 13, 2012
  • 40. http://groups.drupal.org/russiaWednesday, June 13, 2012
  • 41. Wednesday, June 13, 2012
  • 42. Come for the software, stay for the community.Wednesday, June 13, 2012
  • 43. Имеют большой конференцииWednesday, June 13, 2012
  • 44. Спасибо за внимание Florian Lorétan Co-Founder Wunderkraut florian.loretan@wunderkraut.comWednesday, June 13, 2012
  • 45. Sponsors Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор

×