]> git.pld-linux.org Git - packages/drupal.git/blob - drupal-cron.patch
- Up to 6.20, NT
[packages/drupal.git] / drupal-cron.patch
1 diff -uNdr drupal-5.7.old/cron.php drupal-5.7/cron.php
2 --- drupal-5.7.old/cron.php     2006-08-09 09:42:55.000000000 +0200
3 +++ drupal-5.7/cron.php 2008-02-16 15:50:48.000000000 +0100
4 @@ -1,3 +1,4 @@
5 +#!/usr/bin/php
6  <?php
7  // $Id$
8  
9 @@ -6,6 +7,13 @@
10   * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
11   */
12  
13 +// If not in 'safe mode', increase the memory limit
14 +if (!ini_get('safe_mode')) {
15 +  ini_set('memory_limit', '20M');
16 +}
17 +
18 +chdir(dirname(__FILE__));
19 +
20  include_once './includes/bootstrap.inc';
21  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
22  drupal_cron_run();
23 --- drupal-6.16/includes/bootstrap.inc~ 2010-05-04 18:27:27.000000000 +0300
24 +++ drupal-6.16/includes/bootstrap.inc  2010-05-04 18:31:49.802495730 +0300
25 @@ -318,8 +318,8 @@
26      $_SERVER['HTTP_HOST'] = '';
27    }
28  
29 -  if (file_exists('./'. conf_path() .'/settings.php')) {
30 -    include_once './'. conf_path() .'/settings.php';
31 +  if (file_exists(conf_path() .'/settings.php')) {
32 +    include_once conf_path() .'/settings.php';
33    }
34  
35    // Ignore the placeholder url from default.settings.php.
This page took 0.080904 seconds and 3 git commands to generate.