mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11987] Replace {PHPBB_ROOT_PATH} with {ROOT_PATH}.
PHPBB3-11987
This commit is contained in:
parent
7251feab67
commit
05dd4d55d2
4 changed files with 4 additions and 6 deletions
|
@ -122,11 +122,11 @@
|
||||||
{
|
{
|
||||||
if (newimage == 'no_image')
|
if (newimage == 'no_image')
|
||||||
{
|
{
|
||||||
document.getElementById('image_upload_icon').src = "{PHPBB_ROOT_PATH}images/spacer.gif";
|
document.getElementById('image_upload_icon').src = "{ROOT_PATH}images/spacer.gif";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
document.getElementById('image_upload_icon').src = "{PHPBB_ROOT_PATH}{IMG_PATH}/" + newimage;
|
document.getElementById('image_upload_icon').src = "{ROOT_PATH}{IMG_PATH}/" + newimage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
<dd><select name="upload_icon" id="upload_icon" onchange="update_image(this.options[selectedIndex].value);">
|
<dd><select name="upload_icon" id="upload_icon" onchange="update_image(this.options[selectedIndex].value);">
|
||||||
<option value="no_image"<!-- IF S_NO_IMAGE --> selected="selected"<!-- ENDIF -->>{L_NO_IMAGE}</option>{S_FILENAME_LIST}
|
<option value="no_image"<!-- IF S_NO_IMAGE --> selected="selected"<!-- ENDIF -->>{L_NO_IMAGE}</option>{S_FILENAME_LIST}
|
||||||
</select></dd>
|
</select></dd>
|
||||||
<dd> <img <!-- IF S_NO_IMAGE -->src="{PHPBB_ROOT_PATH}images/spacer.gif"<!-- ELSE -->src="{UPLOAD_ICON_SRC}"<!-- ENDIF --> id="image_upload_icon" alt="" title="" /> </dd>
|
<dd> <img <!-- IF S_NO_IMAGE -->src="{ROOT_PATH}images/spacer.gif"<!-- ELSE -->src="{UPLOAD_ICON_SRC}"<!-- ENDIF --> id="image_upload_icon" alt="" title="" /> </dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="extgroup_filesize">{L_MAX_EXTGROUP_FILESIZE}{L_COLON}</label></dt>
|
<dt><label for="extgroup_filesize">{L_MAX_EXTGROUP_FILESIZE}{L_COLON}</label></dt>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{
|
{
|
||||||
var use_element = smiley[newimage];
|
var use_element = smiley[newimage];
|
||||||
|
|
||||||
document.getElementById('add_image_src').src = '{PHPBB_ROOT_PATH}{IMG_PATH}/' + encodeURI(newimage);
|
document.getElementById('add_image_src').src = '{ROOT_PATH}{IMG_PATH}/' + encodeURI(newimage);
|
||||||
document.getElementById('add_code').value = use_element['code'];
|
document.getElementById('add_code').value = use_element['code'];
|
||||||
document.getElementById('add_emotion').value = use_element['emotion'];
|
document.getElementById('add_emotion').value = use_element['emotion'];
|
||||||
document.getElementById('add_width').value = use_element['width'];
|
document.getElementById('add_width').value = use_element['width'];
|
||||||
|
|
|
@ -748,7 +748,6 @@ class acp_attachments
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'PHPBB_ROOT_PATH' => $phpbb_root_path,
|
|
||||||
'IMG_PATH' => $img_path,
|
'IMG_PATH' => $img_path,
|
||||||
'ACTION' => $action,
|
'ACTION' => $action,
|
||||||
'GROUP_ID' => $group_id,
|
'GROUP_ID' => $group_id,
|
||||||
|
|
|
@ -307,7 +307,6 @@ class acp_icons
|
||||||
|
|
||||||
'IMG_SRC' => $phpbb_root_path . $img_path . '/' . $default_row['smiley_url'],
|
'IMG_SRC' => $phpbb_root_path . $img_path . '/' . $default_row['smiley_url'],
|
||||||
'IMG_PATH' => $img_path,
|
'IMG_PATH' => $img_path,
|
||||||
'PHPBB_ROOT_PATH' => $phpbb_root_path,
|
|
||||||
|
|
||||||
'CODE' => $default_row['code'],
|
'CODE' => $default_row['code'],
|
||||||
'EMOTION' => $default_row['emotion'],
|
'EMOTION' => $default_row['emotion'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue