Commit c872fb34 authored by Imran Hussain's avatar Imran Hussain

Meger changes from beta into live site

parent 40d6e445
......@@ -16,7 +16,7 @@ function fetch_isbndb_data($isbn) {
function valid_isbn($isbn) {
return Validate_ISPN::isbn($isbn);
return (new Validate_ISPN)->isbn($isbn);
}
if ($session->groups[$permission]) {
......
......@@ -141,7 +141,7 @@ class Validate_ISPN
// 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 @@ class Validate_ISPN
// 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 @@ class Validate_ISPN
// 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 @@ class Validate_ISPN
* @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 @@ class Validate_ISPN
// Requires base class Validate
require_once 'Validate.php';
return Validate::_checkControlNumber($data, $weights, $modulo, $subtract);
return (new Validate)->_checkControlNumber($data, $weights, $modulo, $subtract);
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment