aboutsummaryrefslogtreecommitdiff
path: root/app/fn/fn.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/fn/fn.php')
-rw-r--r--app/fn/fn.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/fn/fn.php b/app/fn/fn.php
index 9c011ef..f462d2d 100644
--- a/app/fn/fn.php
+++ b/app/fn/fn.php
@@ -1,14 +1,5 @@
<?php
-
-function class_autoloader($class)
-{
- require('.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower(str_replace('\\', DIRECTORY_SEPARATOR, $class)) . '.php');
-}
-
-
-
-
function readablesize($bytes)
{
$format = ' %d %s';
@@ -76,7 +67,7 @@ function idclean(string $input)
$input = preg_replace('%[^a-z0-9-_+]%', '', strtolower(trim($input)));
- $input = substr($input, 0, Model::MAX_ID_LENGTH);
+ $input = substr($input, 0, Wcms\Model::MAX_ID_LENGTH);
return $input;
}