| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* | |
| 3 | +* | |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | // Import dependencies. |
| 7 | 7 | cssJSToolbox::import('framework:html:list.php', 'framework:db:mysql:xtable.inc.php'); |
| @@ -6,33 +6,33 @@ | ||
| 6 | 6 | // Import dependencies. |
| 7 | 7 | cssJSToolbox::import('framework:html:list.php', 'framework:db:mysql:xtable.inc.php'); |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | -* | |
| 10 | +* | |
| 11 | 11 | */ |
| 12 | 12 | class CJTTemplateStatesField extends CJTListField { |
| 13 | - | |
| 13 | + | |
| 14 | 14 | /** |
| 15 | 15 | * put your comment there... |
| 16 | - * | |
| 16 | + * | |
| 17 | 17 | */ |
| 18 | 18 | protected function prepareItems() { |
| 19 | 19 | if (isset($this->options['result']) && ($this->options['result'] == 'fullList')) { |
| 20 | - $this->items['published']['text'] = cssJSToolbox::getText('Published'); | |
| 21 | - $this->items['draft']['text'] = cssJSToolbox::getText('Draft'); | |
| 22 | - $this->items['trash']['text'] = cssJSToolbox::getText('Trash'); | |
| 20 | + $this->items['published']['text'] = cssJSToolbox::getText('published'); | |
| 21 | + $this->items['draft']['text'] = cssJSToolbox::getText('draft'); | |
| 22 | + $this->items['trash']['text'] = cssJSToolbox::getText('trash'); | |
| 23 | 23 | } |
| 24 | 24 | else { |
| 25 | 25 | CJTxTable::import('author'); |
| 26 | 26 | $internalAuthorsFlag = CJTAuthorTable::FLAG_SYS_AUTHOR; |
| 27 | 27 | // Query all template state exluding Internal authors. |
| 28 | - $query = "SELECT DISTINCT(state) `text` | |
| 28 | + $query = "SELECT DISTINCT(state) `text` | |
| 29 | 29 | FROM #__cjtoolbox_templates t |
| 30 | 30 | LEFT JOIN #__cjtoolbox_authors a |
| 31 | 31 | ON t.authorId = a.id |
| 32 | 32 | WHERE (a.attributes & {$internalAuthorsFlag}) = 0 |
| 33 | 33 | ORDER BY `text`"; |
| 34 | - $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query); | |
| 34 | + $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query); | |
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | - | |
| 37 | + | |
| 38 | 38 | } // End class. |