summaryrefslogtreecommitdiffstats
path: root/models/Anime.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-16 16:57:53 -0700
committerraylu <raylu@mixpanel.com>2011-07-16 16:57:53 -0700
commit30bd3dc2c8e1dea9fb394115138f4f5ef9aedc33 (patch)
treef57f67d2ebec64bb7110665bf09a37ec04083266 /models/Anime.php
parentec5b4d4fbfa3f4daecbd01ca6fd38a3d5944990b (diff)
downloadotakuhub-30bd3dc2c8e1dea9fb394115138f4f5ef9aedc33.tar.xz
make search index work
clean up a lot of code renamed anime.css to table.css
Diffstat (limited to 'models/Anime.php')
-rw-r--r--models/Anime.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/Anime.php b/models/Anime.php
index 8281ea7..71a7fd9 100644
--- a/models/Anime.php
+++ b/models/Anime.php
@@ -12,7 +12,7 @@ class Anime extends \lithium\data\Model {
switch($by) {
case 'special_id':
- $content = self::find('first',
+ $anime = self::find('first',
array('conditions' => array(
$by => $query
),
@@ -28,7 +28,7 @@ class Anime extends \lithium\data\Model {
if ($query)
{
$conditions = null; // TODO
- $content = self::find('all', array(
+ $anime = self::find('all', array(
'conditions' => array($by => array('like' => $query)),
'limit' => $limit,
'page' => $page
@@ -37,13 +37,13 @@ class Anime extends \lithium\data\Model {
}
else
{
- $content = self::find('all', array(
+ $anime = self::find('all', array(
'limit' => $limit,
'page' => $page
));
$total = Anime::count();
}
}
- return compact('content', 'by', 'limit', 'total', 'page');
+ return compact('anime', 'by', 'limit', 'total', 'page');
}
}