diff options
| -rw-r--r-- | edit_structure_inc.php | 4 | ||||
| -rw-r--r-- | templates/center_list_generic.tpl | 2 | ||||
| -rw-r--r-- | templates/edit_storage_list.tpl | 2 | ||||
| -rw-r--r-- | templates/edit_structure_alias.tpl | 4 | ||||
| -rw-r--r-- | templates/edit_structure_content.tpl | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/edit_structure_inc.php b/edit_structure_inc.php index 132263e..a1cddf7 100644 --- a/edit_structure_inc.php +++ b/edit_structure_inc.php @@ -69,7 +69,7 @@ if( !@BitBase::verifyId( $_REQUEST["structure_id"] ) ) { if( ( isset( $_REQUEST["action"] ) && ( $_REQUEST["action"] == 'remove' ) ) || !empty( $_REQUEST["confirm"] ) ) { if( $_REQUEST["action"] == 'remove' && !empty( $_REQUEST["confirm"] ) ) { if( $gStructure->removeStructureNode( $_REQUEST["structure_id"], false ) ) { - header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$gStructure->mInfo["parent_id"] ); + header( "Location: ".$_SERVER['SCRIPT_NAME'].'?structure_id='.$gStructure->mInfo["parent_id"] ); die; } else { error_log( "Error removing structure: " . vc($gStructure->mErrors ) ); @@ -96,7 +96,7 @@ if( !@BitBase::verifyId( $_REQUEST["structure_id"] ) ) { } elseif ($_REQUEST["move_node"] == '4') { $gStructure->moveNodeEast(); } - header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$gStructure->mInfo["structure_id"] ); + header( "Location: ".$_SERVER['SCRIPT_NAME'].'?structure_id='.$gStructure->mInfo["structure_id"] ); die; } elseif( !empty( $_REQUEST['submit_structure'] ) ) { if( $gStructure->storeStructure( $_REQUEST ) ) { diff --git a/templates/center_list_generic.tpl b/templates/center_list_generic.tpl index d77a4ed..00d19dd 100644 --- a/templates/center_list_generic.tpl +++ b/templates/center_list_generic.tpl @@ -16,7 +16,7 @@ <label>{tr}Author{/tr}: <input size="10" type="text" name="find_author" value="{$find_author|default:$smarty.request.find_author|escape}" /></label> <label>{tr}Last Editor{/tr}: <input size="10" type="text" name="find_last_editor" value="{$find_last_editor|default:$smarty.request.find_last_editor|escape}" /></label> <input type="submit" name="search" value="{tr}Find{/tr}" /> - <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&{/foreach}'" value="{tr}Reset{/tr}" /> + <input type="button" onclick="location.href='{$smarty.server.SCRIPT_NAME}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&{/foreach}'" value="{tr}Reset{/tr}" /> {/form} {form id="checkform"} diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index 3d1cf6a..4d190d8 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -55,7 +55,7 @@ {if $storage.is_mime} <a href="{$storage.display_url}">{biticon ipackage="icons" iname="document-open" iexplain="View"}</a> {/if} - <a href="{$smarty.server.PHP_SELF}?{$smarty.capture.urlArgs}&deleteAttachment={$attachmentId}">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete"}</a> + <a href="{$smarty.server.SCRIPT_NAME}?{$smarty.capture.urlArgs}&deleteAttachment={$attachmentId}">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete"}</a> {/if} {/if} </td> diff --git a/templates/edit_structure_alias.tpl b/templates/edit_structure_alias.tpl index 85ffed6..d5d31af 100644 --- a/templates/edit_structure_alias.tpl +++ b/templates/edit_structure_alias.tpl @@ -24,7 +24,7 @@ {section name=ix loop=$subtree} {if $subtree[ix].pos eq ''} {if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if} - <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&tab=alias">{$subtree[ix].title|escape}</a> + <a href="{$smarty.server.SCRIPT_NAME}?structure_id={$subtree[ix].structure_id}&tab=alias">{$subtree[ix].title|escape}</a> {if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if} {else} {if $subtree[ix].first}<ul>{else}</li>{/if} @@ -32,7 +32,7 @@ <li> {if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if} <strong>{$subtree[ix].pos}</strong> - <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&tab=alias">{$subtree[ix].title|escape}</a> + <a href="{$smarty.server.SCRIPT_NAME}?structure_id={$subtree[ix].structure_id}&tab=alias">{$subtree[ix].title|escape}</a> {if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if} {/if} {/if} diff --git a/templates/edit_structure_content.tpl b/templates/edit_structure_content.tpl index 7794c50..79ede3d 100644 --- a/templates/edit_structure_content.tpl +++ b/templates/edit_structure_content.tpl @@ -52,7 +52,7 @@ {section name=ix loop=$subtree} {if $subtree[ix].pos eq ''} {if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if} - <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a> + <a href="{$smarty.server.SCRIPT_NAME}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a> {if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if} {else} {if $subtree[ix].first}<ul>{else}</li>{/if} @@ -60,7 +60,7 @@ <li> {if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if} <strong>{$subtree[ix].pos}</strong> - <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a> + <a href="{$smarty.server.SCRIPT_NAME}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a> {if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if} {/if} {/if} |
