Minor bug fixes
This commit is contained in:
@@ -203,18 +203,18 @@ class RegRename
|
||||
try
|
||||
{
|
||||
if(count($this->searchDirs) == 0)
|
||||
throw new Exception("Search directory is missing");
|
||||
throw new \Exception("Search directory is missing");
|
||||
|
||||
else if(count($this->patterns) == 0)
|
||||
throw new Exception("Search pattern is missing");
|
||||
throw new \Exception("Search pattern is missing");
|
||||
|
||||
else if(count($this->replaceStrs) == 0)
|
||||
throw new Exception("Replacement string is missing");
|
||||
throw new \Exception("Replacement string is missing");
|
||||
|
||||
else if(count($this->replaceStrs) != count($this->patterns))
|
||||
throw new Exception("Replacement string and pattern count not match");
|
||||
throw new \Exception("Replacement string and pattern count not match");
|
||||
}
|
||||
catch(Exception $e)
|
||||
catch( \Exception $e )
|
||||
{
|
||||
var_dump( $GLOBALS );
|
||||
die("Error: $e.\n");
|
||||
|
Reference in New Issue
Block a user