Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-7533

Use $result instead of $status
  • Loading branch information...
commit 24e6ae8cc666b0e9ec05ebf57e6cb0a6c200982d 1 parent e31d492
ethem authored
Showing with 21 additions and 4 deletions.
  1. +21 −4 enrol/authorize/db/upgrade.php
View
25 enrol/authorize/db/upgrade.php
@@ -1,19 +1,36 @@
<?php //$Id$
+// This file keeps track of upgrades to
+// the authorize enrol plugin
+//
+// Sometimes, changes between versions involve
+// alterations to database structures and other
+// major things that may break installations.
+//
+// The upgrade function in this file will attempt
+// to perform all the necessary actions to upgrade
+// your older installtion to the current version.
+//
+// If there's something it cannot do itself, it
+// will tell you what you need to do.
+//
+// The commands in here will all be database-neutral,
+// using the functions defined in lib/ddllib.php
+
function xmldb_enrol_authorize_upgrade($oldversion=0) {
global $CFG, $THEME, $db;
- $status = true;
+ $result = true;
- if ($status && $oldversion < 2006101701) {
+ if ($result && $oldversion < 2006101701) {
$table = new XMLDBTable('enrol_authorize');
$field = new XMLDBField('cclastfour');
$field->setAttributes(XMLDB_TYPE_INTEGER, '4', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'paymentmethod');
- $status = $status && rename_field($table, $field, 'refundinfo');
+ $result = $result && rename_field($table, $field, 'refundinfo');
}
- return $status;
+ return $result;
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.