diff options
| author | Nils Adermann <naderman@naderman.de> | 2006-06-09 19:20:51 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2006-06-09 19:20:51 +0000 |
| commit | 753994810a19422d7145fcd615754dcb558bc52a (patch) | |
| tree | 89515a32fd02cc5ba493df5c374060fefc72b40e /phpBB/includes/acp/acp_styles.php | |
| parent | adc6d2a0c1d7b63caf07184a5e28580db1e1780f (diff) | |
| download | forums-753994810a19422d7145fcd615754dcb558bc52a.tar forums-753994810a19422d7145fcd615754dcb558bc52a.tar.gz forums-753994810a19422d7145fcd615754dcb558bc52a.tar.bz2 forums-753994810a19422d7145fcd615754dcb558bc52a.tar.xz forums-753994810a19422d7145fcd615754dcb558bc52a.zip | |
- a few adjustments to permissions, specifically with regard to global topics
- forgot to change a line in permission trace [Bug #2100]
- syntax highlighting for php5
- [Bug #2093]
git-svn-id: file:///svn/phpbb/trunk@6028 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
| -rw-r--r-- | phpBB/includes/acp/acp_styles.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 6b57442cfe..08b8126c36 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -740,8 +740,8 @@ pagination_sep = \'{PAGINATION_SEP}\' $code = highlight_string(str_replace("\n", $marker, $code), true); $code = str_replace($marker, "\n", $code); - $str_from = array('<font color="syntax', '</font>', '<code>', '</code>','[', ']', '.', ':'); - $str_to = array('<span class="syntax', '</span>', '', '', '[', ']', '.', ':'); + $str_from = array('<span style="color: ', '<font color="syntax', '</font>', '<code>', '</code>','[', ']', '.', ':'); + $str_to = array('<span class="', '<span class="syntax', '</span>', '', '', '[', ']', '.', ':'); $code = str_replace($str_from, $str_to, $code); $code = preg_replace('#^(<span class="[a-z_]+">)\n?(.*?)\n?(</span>)$#is', '$1$2$3', $code); @@ -1383,6 +1383,8 @@ pagination_sep = \'{PAGINATION_SEP}\' $imgsize_bool = (!empty($imgname) && ($imgsize || preg_match('#\*\d+#', $$imgname))) ? true : false; + $img_info = explode('*', $$imgname); + $template->assign_vars(array( 'S_EDIT_IMAGESET' => true, 'L_TITLE' => $user->lang[$this->page_title], @@ -1390,7 +1392,7 @@ pagination_sep = \'{PAGINATION_SEP}\' 'IMAGE_OPTIONS' => $img_options, 'IMAGELIST_OPTIONS' => $imagesetlist_options, 'IMAGE_SIZE' => $imgsize_bool, - 'IMAGE_REQUEST' => (!empty($imgname)) ? '../styles/' . $imageset_path . '/imageset/' . str_replace('{LANG}', $imglang, current(explode('*', $$imgname))) : '', + 'IMAGE_REQUEST' => (!empty($imgname)) ? '../styles/' . $imageset_path . '/imageset/' . str_replace('{LANG}', $imglang, $img_info[0]) : '', 'U_ACTION' => $this->u_action . "&action=edit&id=$imageset_id", 'U_BACK' => $this->u_action, 'NAME' => $imageset_name, @@ -2886,8 +2888,6 @@ pagination_sep = \'{PAGINATION_SEP}\' switch ($mode) { case 'template': - $store_db = (!is_writeable("{$phpbb_root_path}styles/$path/template")) ? 1 : $store_db; - // We set a pre-defined bitfield here which we may use further in 3.2 $sql_ary += array( 'bbcode_bitfield' => TEMPLATE_BITFIELD, @@ -2896,8 +2896,6 @@ pagination_sep = \'{PAGINATION_SEP}\' break; case 'theme': - $store_db = (!is_writeable("{$phpbb_root_path}styles/$path/theme/stylesheet.css")) ? 1 : $store_db; - $sql_ary += array( 'theme_storedb' => $store_db, 'theme_data' => ($store_db) ? (($root_path) ? $this->db_theme_data($sql_ary, false, $root_path) : '') : '', |
