summaryrefslogtreecommitdiff
path: root/src/_model.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/_model.php')
-rw-r--r--src/_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_model.php b/src/_model.php
index ce8dd82..ecd63df 100644
--- a/src/_model.php
+++ b/src/_model.php
@@ -44,7 +44,7 @@ abstract class Model extends Base {
// sanity check
assert(is_string($app));
} catch (Exception $_e) {
- $app = CONTEXT['app'];
+ $app = ROUTER->req['app'];
}
$data['css'] = $this->flatten_array([