summaryrefslogtreecommitdiffstats
path: root/application/models/file_mod.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-09 13:46:31 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:48:17 +0200
commit5940316125c1672b72eb08186e6c43f5a91e71ef (patch)
tree1faaaa87d116a64d60fdbcf513139bd05c3ea4e6 /application/models/file_mod.php
parentc0f1755842211996a7a21ffb8773b260bb2be281 (diff)
random_id() -> random_alphanum(); allow single argument
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/file_mod.php')
-rw-r--r--application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index 1f1fa5f49..b6194a39e 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -23,7 +23,7 @@ class File_mod extends CI_Model {
// TODO: make threadsafe
function new_id()
{
- $id = random_id(3,6);
+ $id = random_alphanum(3,6);
if ($this->id_exists($id) || $id == 'file' || $id == 'user') {
return $this->new_id();