Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -8,6 +8,7 @@
|
||||
* @since 11 Feb 2016
|
||||
*/
|
||||
|
||||
use IPS\Application;
|
||||
use IPS\Dispatcher\Front;
|
||||
use IPS\File;
|
||||
use IPS\Output;
|
||||
@@ -20,8 +21,11 @@ try
|
||||
{
|
||||
/* Get the extension */
|
||||
list( $app, $extension ) = explode( '_', Request::i()->storage );
|
||||
$classname = 'IPS\\' . $app . '\extensions\core\FileStorage\\' . $extension;
|
||||
if ( !class_exists( $classname ) )
|
||||
try
|
||||
{
|
||||
$classname = Application::getExtensionClass( $app, 'FileStorage', $extension );
|
||||
}
|
||||
catch( OutOfRangeException )
|
||||
{
|
||||
throw new RuntimeException;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user