requestcontext stuff is messy, go back to globals :(

This commit is contained in:
Shish
2009-05-11 07:04:33 -07:00
parent e592ee4c59
commit bb84a735a2
57 changed files with 407 additions and 477 deletions

View File

@@ -35,7 +35,7 @@ class IcoFileHandler implements Extension {
global $config;
global $database;
$id = int_escape($event->get_arg(0));
$image = Image::by_id($config, $database, $id);
$image = Image::by_id($id);
$hash = $image->hash;
$ha = substr($hash, 0, 2);