1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Fixed imageselector to work in both admin->prefs and admin->newspost. Now uses it's own preview shortcode.

This commit is contained in:
CaMer0n
2008-03-18 00:39:02 +00:00
parent 089d734839
commit 99b74405d9
5 changed files with 40 additions and 17 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/e_ajax.php,v $
| $Revision: 1.3 $
| $Date: 2008-01-27 11:02:34 $
| $Revision: 1.4 $
| $Date: 2008-03-18 00:38:53 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -35,7 +35,9 @@ ob_implicit_flush(0);
if($_POST['ajax_sc'] && $_POST['ajax_used'])
{
echo $tp->parseTemplate("{".strtoupper($_POST['ajax_sc'])."}",TRUE,$shortcodes);
list($fld,$parm) = explode("=",$_POST['ajax_sc']);
$prm = ($parm) ? "=".$parm : "";
echo $tp->parseTemplate("{".strtoupper($fld).$prm."}",TRUE,$shortcodes);
exit;
}
// -----------------------------------------------------------------------------