Changeset 14969 for extensions/add_head_element/main.inc.php
- Timestamp:
- May 14, 2012, 1:14:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/add_head_element/main.inc.php
r12496 r14969 32 32 { 33 33 34 global $template ;34 global $template,$conf; 35 35 36 $query = ' 37 select param,value 38 FROM ' . CONFIG_TABLE . ' 39 WHERE param = "add_head_element" 40 ;'; 41 $result = pwg_query($query); 42 $row = mysql_fetch_assoc($result); 43 44 if (!empty($row['value'])) 36 if (!empty($conf['add_head_element'])) 45 37 { 46 $template->append('head_elements', $ row['value']);38 $template->append('head_elements', $conf['add_head_element']); 47 39 } 48 40 }
Note: See TracChangeset
for help on using the changeset viewer.