summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 07:48:33 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 07:48:33 -0700
commite261a97150684c943ebd6f994f610a2c2d0ba6b6 (patch)
tree67e356c4325f4b1426b10c5f68bebae8bcaed1c5 /actions/newnotice.php
parenta21a9f26c5f0eb034ea389659dd63ffad400de5b (diff)
remove common_debug from newnotice
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index a5f87d1be..4a2c369f0 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -238,13 +238,9 @@ class NewnoticeAction extends Action
}
}
- common_debug("newnotice.php - before Notice::saveNew()");
-
$notice = Notice::saveNew($user->id, $content_shortened, 'web', 1,
($replyto == 'false') ? null : $replyto);
- common_debug("newnotice.php - after Notice::saveNew()");
-
if (is_string($notice)) {
if (isset($filename)) {
$this->deleteFile($filename);
@@ -252,8 +248,6 @@ class NewnoticeAction extends Action
$this->clientError($notice);
}
- common_debug("newnotice.php - after Notice::saveNew()");
-
if (isset($mimetype)) {
$this->attachFile($notice, $filename, $mimetype, $short_fileurl);
}
@@ -291,20 +285,12 @@ class NewnoticeAction extends Action
$this->serverError(_('Somehow lost the login in saveFile'));
}
- common_debug("NewnoticeAction::storeFile()");
-
$basename = basename($_FILES['attach']['name']);
- common_debug("Basename: $basename");
-
$filename = File::filename($cur->getProfile(), $basename, $mimetype);
- common_debug("filename: $filename");
-
$filepath = File::path($filename);
- common_debug("filepath: $filepath");
-
if (move_uploaded_file($_FILES['attach']['tmp_name'], $filepath)) {
return $filename;
} else {
@@ -325,8 +311,6 @@ class NewnoticeAction extends Action
$file->url = common_local_url('file', array('notice' => $notice->id));
- common_debug("file->url =". $file->url);
-
$filepath = File::path($filename);
$file->size = filesize($filepath);