Version 4.1.19.4
This commit is contained in:
1 parent
2bd5025018
commit
0dc2aee5ed
312 files changed
+53730
-32118
No files matched your search
@@ -0,0 +1,33 @@
|
||||
//<?php
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class convert_hook_FrontDispatcher extends _HOOK_CLASS_
|
||||
{
|
||||
/**
|
||||
* Check whether the URL we visited is correct and route appropriately
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function checkUrl()
|
||||
{
|
||||
/* Let the parent do its thing first */
|
||||
try
|
||||
{
|
||||
parent::checkUrl();
|
||||
}
|
||||
/* If we are here, the URL was not valid. Let's see if we need to do anything for converted sites */
|
||||
catch( \OutOfRangeException $e )
|
||||
{
|
||||
$application = \IPS\Application::load('convert');
|
||||
$application::checkRedirects();
|
||||
|
||||
/* If we are still here, let the exception bubble up */
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user