- Timestamp:
- Mar 6, 2012, 9:43:18 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r12922 r13489 23 23 24 24 define('PHPWG_ROOT_PATH','./'); 25 session_cache_limiter('public'); 25 26 include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 26 27 … … 71 72 ;'; 72 73 73 $result = pwg_query($query); 74 $element_info = pwg_db_fetch_assoc($result); 74 $element_info = pwg_db_fetch_assoc(pwg_query($query)); 75 75 if ( empty($element_info) ) 76 76 { … … 106 106 if ( $user['enabled_high']!='true' ) 107 107 { 108 do_error(401, 'Access denied h');108 do_error(401, 'Access denied e'); 109 109 } 110 110 $file = get_element_path($element_info); … … 120 120 } 121 121 122 if ($_GET['part'] == ' h') {122 if ($_GET['part'] == 'e') { 123 123 pwg_log($_GET['id'], 'high'); 124 124 } -
trunk/include/derivative.inc.php
r13452 r13489 77 77 function get_url() 78 78 { 79 return embellish_url(get_root_url().$this->rel_path); 79 $url = get_root_url().$this->rel_path; 80 if ($this->flags & self::IS_ORIGINAL) 81 { 82 $url = trigger_event('get_src_image_url', $url, $this); 83 } 84 return embellish_url($url); 80 85 } 81 86 -
trunk/themes/default/template/picture.tpl
r13478 r13489 21 21 {if count($current.unique_derivatives)>1} 22 22 {footer_script}{literal} 23 function changeImgSrc(url,typeSave,typeMap ,typeDisplay)23 function changeImgSrc(url,typeSave,typeMap) 24 24 { 25 25 var theImg = document.getElementById("theMainImage"); … … 28 28 theImg.removeAttribute("width");theImg.removeAttribute("height"); 29 29 theImg.src = url; 30 var elt = document.getElementById("derivativeSwitchLink");31 /* if (elt) elt.innerHTML = typeDisplay; */32 30 theImg.useMap = "#map"+typeMap; 33 31 } … … 54 52 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> 55 53 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 56 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}' ,'{$derivative->get_type()|@translate|@escape:javascript}')">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br>54 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br> 57 55 {/foreach} 58 56 {if isset($U_ORIGINAL)}
Note: See TracChangeset
for help on using the changeset viewer.