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

3 reasons to contribute to drupal florian loretan (eng)

on

  • 670 views

 

Statistics

Views

Total Views
670
Views on SlideShare
664
Embed Views
6

Actions

Likes
0
Downloads
1
Comments
0

1 Embed 6

http://drupalconf.ru 6

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

3 reasons to contribute to drupal florian loretan (eng) 3 reasons to contribute to drupal florian loretan (eng) Presentation Transcript

  • 3 Reasons to contribute to Drupal Florian Lorétan Co-Founder Wunderkraut florian.loretan@wunderkraut.comWednesday, June 13, 2012
  • Sponsors Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор
  • добрый деньWednesday, June 13, 2012
  • Я не говорю по РоссииWednesday, June 13, 2012
  • Я говорю DrupalWednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • That’s me!Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Who are you?Wednesday, June 13, 2012
  • What is a contribution?Wednesday, June 13, 2012
  • 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
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Programming Graphic Design Project Management Business System Administration ...Wednesday, June 13, 2012
  • #1 LEARNWednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • The best place to learn to swim...Wednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Best practicesWednesday, June 13, 2012
  • Become an expertWednesday, June 13, 2012
  • Its better to train your employees and risk they leave, than not training them and risking they stay.Wednesday, June 13, 2012
  • #2 EXCHANGEWednesday, June 13, 2012
  • Testing Reviews Bug reports Patches ...Wednesday, June 13, 2012
  • Testing Testing Reviews ReviewsBug reports Bug reports Patches Patches ... ...
  • “Mathematics is like sex: sure, it may give some practical results, but thats not why we do it.” ― Richard P. FeynmanWednesday, June 13, 2012
  • 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
  • #3 NETWORKWednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Jobs Projects Resources Expertise ...Wednesday, June 13, 2012
  • OpportunitiesWednesday, June 13, 2012
  • LEARNWednesday, June 13, 2012
  • LEARN EXCHANGEWednesday, June 13, 2012
  • LEARN EXCHANGEWednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • http://groups.drupal.org/russiaWednesday, June 13, 2012
  • Wednesday, June 13, 2012
  • Come for the software, stay for the community.Wednesday, June 13, 2012
  • Имеют большой конференцииWednesday, June 13, 2012
  • Спасибо за внимание Florian Lorétan Co-Founder Wunderkraut florian.loretan@wunderkraut.comWednesday, June 13, 2012
  • Sponsors Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор