projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc9690
)
DataObjects/I18n.php
author
Edward
<edward@roojs.com>
Mon, 18 Feb 2019 06:53:58 +0000
(14:53 +0800)
committer
Edward
<edward@roojs.com>
Mon, 18 Feb 2019 06:53:58 +0000
(14:53 +0800)
DataObjects/I18n.php
patch
|
blob
|
history
diff --git
a/DataObjects/I18n.php
b/DataObjects/I18n.php
index
138082b
..
6e46fff
100644
(file)
--- a/
DataObjects/I18n.php
+++ b/
DataObjects/I18n.php
@@
-152,6
+152,24
@@
class Pman_Core_DataObjects_I18n extends DB_DataObject
if(!empty($q['_with_geoip_count'])) {
+ $this->selectAdd("
+ (
+ SELECT
+ COUNT(geoip_division.id)
+ FROM
+ geoip_division
+ WHERE
+ geoip_division.country = 'i18n.lkey'
+ ) AS no_of_division,
+ (
+ SELECT
+ COUNT(geoip_city.id)
+ FROM
+ geoip_city
+ WHERE
+ geoip_city.country = 'i18n.lkey'
+ ) AS no_of_division
+ ");
}
}