[SUCS Devel] site r667 - in branches/sucs-site: . components lib/Validate static
imranh at sucs.org
imranh at sucs.org
Mon Apr 13 20:39:27 BST 2015
Author: imranh
Date: 2015-04-13 20:39:19 +0100 (Mon, 13 Apr 2015)
New Revision: 667
Modified:
branches/sucs-site/
branches/sucs-site/components/libraryadmin.php
branches/sucs-site/lib/Validate/ISPN.php
branches/sucs-site/static/
Log:
Meger changes from beta into live site
Property changes on: branches/sucs-site
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/imranh:590-591
/branches/sucs-site/branches/sucs-site:590-591
+ /branches/beta:664-666
/branches/imranh:590-591
/branches/sucs-site/branches/sucs-site:590-591
/trunk:664-665
Modified: branches/sucs-site/components/libraryadmin.php
===================================================================
--- branches/sucs-site/components/libraryadmin.php 2015-04-13 19:00:08 UTC (rev 666)
+++ branches/sucs-site/components/libraryadmin.php 2015-04-13 19:39:19 UTC (rev 667)
@@ -16,7 +16,7 @@
function valid_isbn($isbn) {
- return Validate_ISPN::isbn($isbn);
+ return (new Validate_ISPN)->isbn($isbn);
}
if ($session->groups[$permission]) {
Modified: branches/sucs-site/lib/Validate/ISPN.php
===================================================================
--- branches/sucs-site/lib/Validate/ISPN.php 2015-04-13 19:00:08 UTC (rev 666)
+++ branches/sucs-site/lib/Validate/ISPN.php 2015-04-13 19:39:19 UTC (rev 667)
@@ -141,7 +141,7 @@
// Requires base class Validate
require_once 'Validate.php';
- return Validate::_checkControlNumber($isbn, $weights_isbn, 11, 11);
+ return (new Validate)->_checkControlNumber($isbn, $weights_isbn, 11, 11);
}
@@ -172,7 +172,7 @@
// Requires base class Validate
require_once 'Validate.php';
- return Validate::_checkControlNumber($issn, $weights_issn, 11, 11);
+ return (new Validate)->_checkControlNumber($issn, $weights_issn, 11, 11);
}
/**
@@ -212,7 +212,7 @@
// Requires base class Validate
require_once 'Validate.php';
- return Validate::_checkControlNumber($ismn, $weights_ismn, 10, 10);
+ return (new Validate)->_checkControlNumber($ismn, $weights_ismn, 10, 10);
}
/**
@@ -349,7 +349,7 @@
* @param array $weights holds the weight that will be used in calculations for the validation
* @return bool true if number is valid, otherwise false
* @access public
- * @see Validate::_checkControlNumber()
+ * @see (new Validate)->_checkControlNumber()
*/
function process($data, $length, &$weights, $modulo = 10, $subtract = 0)
{
@@ -365,7 +365,7 @@
// Requires base class Validate
require_once 'Validate.php';
- return Validate::_checkControlNumber($data, $weights, $modulo, $subtract);
+ return (new Validate)->_checkControlNumber($data, $weights, $modulo, $subtract);
}
}
?>
Property changes on: branches/sucs-site/static
___________________________________________________________________
Added: svn:mergeinfo
+ /trunk/static:664-665
More information about the Devel
mailing list