]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13204 xmlb editor checks - give extra time to checker because they can run looong
authorstronk7 <stronk7>
Sat, 30 May 2009 23:45:07 +0000 (23:45 +0000)
committerstronk7 <stronk7>
Sat, 30 May 2009 23:45:07 +0000 (23:45 +0000)
admin/xmldb/actions/XMLDBCheckAction.class.php

index 378b678acee60e800e342b9cd2e6cb9fb69ca8ba..ff84c87406fb7bc32bec7b1fe7414b61ed915bc0 100644 (file)
@@ -1,31 +1,34 @@
-<?php // $Id$
-
-///////////////////////////////////////////////////////////////////////////
-//                                                                       //
-// NOTICE OF COPYRIGHT                                                   //
-//                                                                       //
-// Moodle - Modular Object-Oriented Dynamic Learning Environment         //
-//          http://moodle.com                                            //
-//                                                                       //
-// Copyright (C) 1999 onwards Martin Dougiamas     http://dougiamas.com  //
-//           (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com  //
-//                                                                       //
-// This program is free software; you can redistribute it and/or modify  //
-// it under the terms of the GNU General Public License as published by  //
-// the Free Software Foundation; either version 2 of the License, or     //
-// (at your option) any later version.                                   //
-//                                                                       //
-// This program is distributed in the hope that it will be useful,       //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
-// GNU General Public License for more details:                          //
-//                                                                       //
-//          http://www.gnu.org/copyleft/gpl.html                         //
-//                                                                       //
-///////////////////////////////////////////////////////////////////////////
-
-/// This is a base class for the various actions that interate over all the
-/// tables and check some aspect of their definition.
+<?php
+
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * @package   xmldb-editor
+ * @copyright 2008 onwards Tim Hunt
+ * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+/**
+ * This is a base class for the various actions that interate over all the
+ * tables and check some aspect of their definition.
+ *
+ * @package   xmldb-editor
+ * @copyright 2008 onwards Tim Hunt
+ * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
 abstract class XMLDBCheckAction extends XMLDBAction {
     /**
      * This string is displayed with a yes/no choice before the report is run.
@@ -158,6 +161,10 @@ abstract class XMLDBCheckAction extends XMLDBAction {
                             $o.=$output;
                             $problemsfound = array_merge($problemsfound, $newproblems);
                             $o.='    </li>';
+                        /// Give the script some more time (resetting to current if exists)
+                            if ($currenttl = @ini_get('max_execution_time')) {
+                                @ini_set('max_execution_time',$currenttl);
+                            }
                         }
                         $o.='        </ul>';
                     }