Ignore:
Timestamp:
Jun 16, 2013, 1:09:12 AM (11 years ago)
Author:
mistic100
Message:

two columns display for shortcuts form, keep save of original smilies.txt file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmiliesSupport/include/smiliessupport.inc.php

    r23234 r23236  
    7979  }
    8080 
    81   if (file_exists($folder.'smilies.txt'))
     81  if (file_exists($folder.'smilies-custom.txt'))
    8282  {
    83     foreach (file($folder.'smilies.txt', FILE_IGNORE_NEW_LINES) as $v)
     83    $file = file($folder.'smilies-custom.txt', FILE_IGNORE_NEW_LINES);
     84  }
     85  else if (file_exists($folder.'smilies.txt'))
     86  {
     87    $file = file($folder.'smilies.txt', FILE_IGNORE_NEW_LINES);
     88  }
     89  if (!empty($file))
     90  {
     91    foreach ($file as $v)
    8492    {
    8593      $v = trim($v);
Note: See TracChangeset for help on using the changeset viewer.