projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
working on widget video resizing integration
[living-lab-site.git]
/
application
/
controllers
/
catalog.php
diff --git
a/application/controllers/catalog.php
b/application/controllers/catalog.php
index
3285c67
..
fec8d64
100644
(file)
--- a/
application/controllers/catalog.php
+++ b/
application/controllers/catalog.php
@@
-57,10
+57,9
@@
class Catalog extends CI_Controller {
{
$this->load->helper('url');
- $str = '[{"def":"1080p"},{"def":"600p"}]';
- $a = json_decode($str);
+ $str = '800x600';
- echo
count($a
);
+ echo
substr($str, strpos($str, 'x') + 1
);
}
public function category($category_id, $offset = 0)